regression: Simple linear regression

Description Usage Arguments Value Author(s)

View source: R/regression.R

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

1
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.

Author(s)

Tao Hu, Yihui Zhou


ZIBBSeqDiscovery documentation built on May 2, 2019, 4:21 a.m.