| blr_regress | R Documentation |
Binary logistic regression.
blr_regress(object, ...)
## Default S3 method:
blr_regress(
object,
data,
odd_conf_limit = FALSE,
weights = NULL,
offset = NULL,
...
)
## S3 method for class 'glm'
blr_regress(object, odd_conf_limit = FALSE, ...)
object |
An object of class "formula" (or one that can be coerced to
that class): a symbolic description of the model to be fitted or class
|
... |
Other inputs. |
data |
A |
odd_conf_limit |
If TRUE, odds ratio confidence limits will be displayed. |
weights |
An optional vector of prior weights to be used in the fitting process. |
offset |
An optional offset to be included in the model. |
The default method fits a binomial logit model with
glm. An offset may be supplied directly, and the
formula environment is kept. When a fitted glm object is supplied, the
fit is summarised directly, so an offset supplied through the model formula
and the formula environment are respected. Weighted models are rejected by
the shared model guard.
Odds ratio confidence limits are profile-likelihood intervals computed by
confint.
# using formula
blr_regress(object = honcomp ~ female + read + science, data = hsb2)
# using a model built with glm
model <- glm(honcomp ~ female + read + science, data = hsb2,
family = binomial(link = 'logit'))
blr_regress(model)
# odds ratio estimates
blr_regress(model, odd_conf_limit = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.