build.null.model: Applies linear of logistic regregression to the data.

Description Usage Arguments Value

View source: R/preprocess.R

Description

Applies linear of logistic regregression to the data.

Usage

1
build.null.model(y, x, reg.family = "binomial", verbose = FALSE)

Arguments

y

A vector with values of dependent variable (outcome).

x

A data.frame of covariates.

reg.family

A regression family. Can be either "binomial" or "gaussian."

verbose

Indicates verbosing output. Default: FALSE.

Value

A list of two: "S" - a dataframe with predictors and "fit" - an object returned by "glm" function.


rqt documentation built on Nov. 8, 2020, 4:50 p.m.