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,
...
)
## S3 method for class 'binomreg'
residuals(object, ..., type = c("deviance", "pearson", "response"))
## 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 |
... |
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.