data_generator: Syntheic data generator

Description Usage Arguments Value Examples

View source: R/data_generator.R

Description

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

Usage

1
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

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)

XiDsLab/DtracePLN documentation built on Dec. 18, 2021, 7:21 p.m.