Generate data
generate_data.RdGenerate 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","curved_gaussian", and"bernoulli".- nuisance_param_vec
Either
NAor a single numeric or a length-\(p\) vector of numerics representing nuisance parameters (forfamily = "neg_binom"andfamily = "curved_gausian"). It is only required iffamily %in% c("neg_binom", "curved_gaussian").- library_size_vec
Either
NAor a length-\(n\) vector of numerics- tol
Small positive value to determine the smallest possible value in the output matrix, useful for only
family = "curved_gaussian".