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

View source: R/preprocess.R

build.null.modelR Documentation

Applies linear of logistic regregression to the data.

Description

Applies linear of logistic regregression to the data.

Usage

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 documentation built on Aug. 2, 2024, 1:39 p.m.