Learn R Programming

fastStat (version 1.4)

mv_logit: Multivariable Logistic Regression

Description

Multivariable Logistic Regression

Usage

mv_logit(data, y, x, direction = "no", summary = TRUE, ...)

Arguments

data

data

y

y varaible

x

variable names for univariable logistic regression. If missing, it will be column names of data except y and adjust

direction

direction for stepwise regression. Four options: no, backward, forward and both. Defaulted is no

summary

logical. Whether to return summary results. TRUE as defaulted

...

arguments passed to step() function

Value

multivariable logistic regression results

Examples

Run this code
# NOT RUN {
mv_logit(data = mtcars,y = 'am',
    variable = c('cyl','disp'))
# }

Run the code above in your browser using DataLab