Learn R Programming

ZIBBSeqDiscovery (version 1.0)

regression: Simple linear regression

Description

Use simple linear regression to find the initial value of betas in free approach, where beta are the effects/coefficients for the count model.

Usage

regression(y, x)

Arguments

y

The response vector.

x

The design matrix (n by p, p is the number of covariates) for the count model (e.g., beta-binomial), and intercept is included.

Value

betahat

Initial values for beta estimation matrix (p by m, p is the number of involved covariates and m is the number of OTUs).

se

Standard errors for the estimated betas.