norm_PLN: Runs PLN function from the PLNmodels package and normalized...

Description Usage Arguments Value Examples

View source: R/Initialize.R

Description

Runs PLN function from the PLNmodels package and normalized the outputs

Usage

1
norm_PLN(Y, X = NULL, O = NULL)

Arguments

Y

Count dataset (n x p).

X

Matrix of covariates (n x d).

O

Matrix of offsets (n x p).

Value

Examples

1
2
3
4
5
6
7
 n=100 # 100 samples
p=10  # 10 species
r=1 # 1 missing actor
data=generate_missing_data(n=n,p=p,r=r,type="scale-free", plot=TRUE)
X=data.frame(X1=rnorm(n), X2=runif(n))
normPLNfit<-norm_PLN(data$Y,X)
str(normPLNfit)

Rmomal/nestor documentation built on Dec. 16, 2020, 7:54 p.m.