sigma_momest | R Documentation |
Estimate the covariance matrix using moment method for PLN model.
sigma_momest( data_use, S_depth )
data_use |
The matrix of count data. |
S_depth |
A Vector, which contains the library size estimation. |
The estimated covariance matrix for PLN model by using moment method.
# Library package library(MASS) library(CVXR) library(EQUAL) ## # Generator the syntheic data data_generator_res<-DtracePLN::data_generator(n = 100, p = 50, densy_degree = 0.05, sd_ls = 0.1, mean_ls = log(10),value_nondiagonal = 0.3) ## S_depth<-DtracePLN::compute_offset(counts = data_generator_res$obs_mat,offset = "TSS") cov_Y1<-DtracePLN::sigma_momest(data_use = data_generator_res$obs_mat,S_depth = S_depth)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.