
Fit Zero-Probability Dropout Curve (Splatter & ZINB-WaVE)
Source:R/02_extract_properties.R
calc_zero_probability_curve.RdFits an empirical logistic dropout curve: logit(P(Y=0)) = beta_0 + beta_1 * log(mu) to model the dropout relationship with mean expression.
Examples
data(example_scrna, package = "scSimEval")
calc_zero_probability_curve(example_scrna$ref)
#> $intercept
#> [1] 0.1664043
#>
#> $slope
#> [1] -1.259067
#>
#> $midpoint
#> [1] 0.1321648
#>
#> $r_squared
#> [1] 0.7142614
#>