diffRegression: diffRegression

View source: R/npdr.R

diffRegressionR Documentation

diffRegression

Description

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.

Usage

diffRegression(
  design.matrix.df,
  regression.type = "binomial",
  fast.reg = FALSE,
  dof = 0
)

Arguments

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

("lm", "binomial")

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

Value

vector of regression stats to put into list for npdr and combine into matrix


insilico/npdr documentation built on July 6, 2023, 1:14 p.m.