binomreg {micsr} | R Documentation |
Binomial regression
Description
A unified interface for binomial regression models, including linear probability, probit and logit models
Usage
binomreg(
formula,
data,
weights,
subset,
na.action,
offset,
contrasts = NULL,
link = c("identity", "probit", "logit"),
method = c("ml", "twosteps", "minchisq", "test"),
start = NULL,
robust = TRUE,
opt = c("newton", "nr", "bfgs"),
maxit = 100,
trace = 0,
check_gradient = FALSE,
...
)
## S3 method for class 'binomreg'
glance(x, ...)
Arguments
formula |
a symbolic description of the model |
data |
a data frame, |
subset , weights , na.action , offset , contrasts |
see |
link |
one of |
method |
|
start |
a vector of starting values |
robust |
only when |
opt |
optimization method |
maxit |
maximum number of iterations |
trace |
printing of intermediate result |
check_gradient |
if |
... |
further arguments |
x |
a |
Value
an object of class c("binomreg", "micsr")
, see
micsr::micsr
for further details
Examples
pbt <- binomreg(mode ~ cost + ivtime + ovtime, data = mode_choice, link = 'probit')
lpm <- binomreg(mode ~ cost + ivtime + ovtime, data = mode_choice, link = 'identity')
summary(pbt, vcov = "opg")