diffRegression | R Documentation |
Wrapper for lm and glm-binomial to run regression for a phenotype diff vector, one attribute diff vector with optional covariate adjustment. Organizes regression statistics into a vector and then all attribute statistics combined in npdr.
diffRegression(
design.matrix.df,
regression.type = "binomial",
fast.reg = FALSE,
dof = 0
)
design.matrix.df |
Desgin matrix with variables: pheno.diff.vec (outcome variable as vector of diffs), attr.diff.vec (one predictor varialbe as vector of diffs) and optional covariates (regressors of non-interest) vector diffs. |
regression.type |
( |
fast.reg |
logical, whether regression is run with speedlm or speedglm, default as F |
dof |
manual input for degrees of freedom, dof=0 lets R stats determine |
vector of regression stats to put into list for npdr and combine into matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.