View source: R/lm_model_summary.R
lm_model_summary | R Documentation |
An integrated function for fitting a linear regression model.
This function will no longer be updated. Please use the these functions separately instead: model_summary
, interaction_plot
,and simple_slope
.
lm_model_summary(
data,
response_variable = NULL,
predictor_variable = NULL,
two_way_interaction_factor = NULL,
three_way_interaction_factor = NULL,
family = NULL,
cateogrical_var = NULL,
graph_label_name = NULL,
model_summary = TRUE,
interaction_plot = TRUE,
y_lim = NULL,
plot_color = FALSE,
digits = 3,
simple_slope = FALSE,
assumption_plot = FALSE,
quite = FALSE,
streamline = FALSE,
return_result = FALSE
)
a list of all requested items in the order of model, model_summary, interaction_plot, simple_slope
fit <- lm_model_summary(
data = iris,
response_variable = "Sepal.Length",
predictor_variable = dplyr::everything(),
two_way_interaction_factor = c(Sepal.Width, Species),
interaction_plot = FALSE, # you can also request the interaction plot
simple_slope = FALSE, # you can also request simple slope estimate
assumption_plot = FALSE, # you can also request assumption plot
streamline = FALSE #you can change this to get the least amount of info
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.