Description Usage Arguments Value Examples
View source: R/data_generator.R
Generate the syntheic data from multivariate poisson log-normal distribution.
1 | data_generator(n = 100, p = 50, densy_degree = 0.05, sd_ls = 0.1, mean_ls = log(10), value_nondiagonal = 0.3)
|
n |
Sample size. |
p |
Dimension. |
densy_degree |
The proportion of edge connected in network. |
sd_ls |
The standard deviation of library size. |
mean_ls |
The expectation of library size. |
value_nondiagonal |
The valus of non-diagonal element in precision matrix. |
A list which contain the following result:
obs_mat |
The matrix of syntheic count data. |
S_depth |
The vector of syntheic library size. |
Pre_mat |
The matrix of syntheic precision matrix. |
1 2 3 4 5 6 7 | # Library package
library(MASS)
##
# Generator the syntheic data
data_generator_res<-PLNet::data_generator(n = 100, p = 50, densy_degree = 0.05,
sd_ls = 0.1, mean_ls = log(10),value_nondiagonal = 0.3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.