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.


izhbannikov/rqt.bk documentation built on May 5, 2019, 6:58 p.m.