glinmod | R Documentation |
Perform a general linear model
glinmod(f, data, plot = TRUE, ...)
f |
An equation of the form y~x1 + x2 + x3, etc. |
data |
The dataset containing the variables the user wishes to model |
plot |
Should results be plotted? |
... |
Other parameters passed to |
A general linear model (GLM) is a statistical model of the form Y = BX, where X can be any number of numeric or categorical predictors. The GLM subsumes the most common statistical models, including t-tests, ANOVAs, regressions, etc. The function will automatically detect whether the variables are numeric or categorical and generate estimates and graphics accordingly.
An object containing the information from estimates
Dustin Fife
estimates
, visualize
, flexplot
, model.comparison
## load the exercise dataset
data(exercise_data)
data = exercise_data
glinmod(weight.loss~gender, data=exercise_data)
## pass parameters to flexplot
glinmod(weight.loss~gender + motivation, data=exercise_data,
method="lm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.