data_generator: Syntheic data generator

View source: R/data_generator.R

data_generatorR Documentation

Syntheic data generator

Description

Generate the syntheic data from multivariate poisson log-normal distribution.

Usage

data_generator(n = 100, p = 50, densy_degree = 0.05, sd_ls = 0.1, mean_ls = log(10), value_nondiagonal = 0.3)

Arguments

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.

Value

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.

Examples

# Library package
library(MASS)

##
# 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)

git-tjj/DtracePLN documentation built on Jan. 30, 2023, 1:47 a.m.