Generate data
Arguments
- nat_mat
An \(n\times p\) matrix of natural parameters, where \(n\) rows represent cells and \(p\) columns represent genes.
- family
A character string, one of
"gaussian","exponential","poisson","neg_binom","neg_binom2","curved_gaussian", and"bernoulli".- nuisance_param_vec
Either
NAor a single numeric or a length-\(p\) vector of numerics representing nuisance parameters. It is required iffamilyis"gaussian","curved_gaussian","neg_binom"or"neg_binom2", and ignored otherwise.- library_size_vec
A single positive numeric (recycled to every cell; default
1) or a length-\(n\) vector of positive numerics.- tol
Small positive value to determine the smallest possible value in the output matrix, applied only when
familyis"gaussian"or"curved_gaussian".