Learn R Programming

fastStat (version 1.4)

uv_logit: Looping for Univariable Logistic Regression

Description

Looping for Univariable Logistic Regression

Usage

uv_logit(
  data,
  y,
  variable,
  adjust,
  round = 3,
  p_threshold = 0.05,
  order_by.or = TRUE
)

Arguments

data

data

y

y

variable

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

adjust

adjust variable names for univariable logistic regression

round

digital round, 3 is defaulted

p_threshold

threshold for p value to show star. 0.05 is defaulted

order_by.or

logical. TRUE means order in or by decreasing. FLASE is defaulted

Value

univariable logistic regression results

Examples

Run this code
# NOT RUN {
uv_logit(data = mtcars,y = 'vs')
# }

Run the code above in your browser using DataLab