Firth fit of one single-cell bulk sample
Source:R/03_04_single_cell_inference.R
fit_firth_single_cell.RdMaximises the profile log-likelihood plus half the log determinant of the observed profile information. The penalty uses the negative profile Hessian, not an expected Fisher matrix. Scales stay concentrated out, so the penalty does not add a third free scale.
Arguments
- y
Bulk vector of length \(G\).
- mean_signature_matrix
Reference mean, \(G\times J\).
- Sigma
Cell-level covariances, \(G\times G\times J\).
- epsilon
Relative function and step tolerances passed to
stats::nlminb().- itmax
Maximum number of iterations.
Value
A list with coefficients, rho, loglik, penalty,
penalised_loglik, mean_scale, variance_scale and convergence.
See also
confint_single_cell(), fit_firth_decovart()
Other decovart_inference:
bootstrap_decovart(),
bootstrap_single_cell(),
boundary_diagnostics(),
chi_bar_square_pvalue(),
confint_decovart(),
confint_ilr_backtransform(),
confint_profile_decovart(),
confint_profile_single_cell(),
confint_single_cell(),
equivariance_check_decovart(),
fit_firth_decovart(),
lrt_decovart(),
lrt_single_cell(),
multistart_decovart(),
reference_bootstrap_decovart(),
reference_bootstrap_single_cell(),
restricted_mle_decovart(),
restricted_mle_single_cell()