binomreg | R Documentation |
A unified interface for binomial regression models, including linear probability, probit and logit models
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, ...)
## S3 method for class 'binomreg'
predict(object, ..., type = c("response", "link"), newdata = NULL)
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 |
object , x , type |
a |
newdata |
a new data frame for the |
an object of class c("binomreg", "micsr")
, see
micsr::micsr
for further details
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.