Fits a univariate logistic regression model for a binary response and a continuous predictor. Returns odds ratio (per-unit increase) with 95% confidence intervals and Wald p-value.

logist_univar_fun_cts(data_fun, response, var)

Arguments

data_fun

Data frame containing variables.

response

Character. Name of binary outcome variable.

var

Character. Name of continuous predictor.

dig

Number of digits to round results.

Value

A 1-row matrix with OR, CI and p-value.

Examples

if (FALSE) { # \dontrun{
logist_univar_fun_cts(mydata, "Y", "Age")
} # }