View source: R/bruceR-stats_4_regress.R
regress | R Documentation |
NOTE: model_summary
is preferred.
regress(
formula,
data,
family = NULL,
digits = 3,
robust = FALSE,
cluster = NULL,
test.rand = FALSE
)
formula |
Model formula. |
data |
Data frame. |
family |
[Optional] The same as in |
digits |
Number of decimal places of output. Defaults to |
robust |
[Only for *** |
cluster |
[Only for |
test.rand |
[Only for |
No return value.
print_table
(print simple table)
model_summary
(highly suggested)
GLM_summary
HLM_summary
## Not run:
## lm
regress(Temp ~ Month + Day + Wind + Solar.R, data=airquality, robust=TRUE)
## glm
regress(case ~ age + parity + education + spontaneous + induced,
data=infert, family=binomial, robust="HC1", cluster="stratum")
## lmer
library(lmerTest)
regress(Reaction ~ Days + (Days | Subject), data=sleepstudy)
regress(Preference ~ Sweetness + Gender + Age + Frequency +
(1 | Consumer), data=carrots)
## glmer
library(lmerTest)
data.glmm = MASS::bacteria
regress(y ~ trt + week + (1 | ID), data=data.glmm, family=binomial)
regress(y ~ trt + week + hilo + (1 | ID), data=data.glmm, family=binomial)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.