Description Usage Arguments Examples
View source: R/makeRegressionPlots.R
This function creates a regression plot
1 | makeRegressionPlots(modeltoplot)
|
modeltoplot |
a regression model object to plot results from |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | misper_tweets <- structure(list(retweet_count = c(41L, 1L, 2L, 85L, 3L, 0L, 0L,
2L, 3L, 12L), post_length = c(107L, 95L, 147L, 138L, 129L, 100L,
117L, 138L, 114L, 139L), useful_information_yn = c("Y", "Y",
"N", "N", "N", "N", "Y", "N", "N", "N"), diffdate = c(2061, 598,
1044, 464, 2061, 2014, 2087, 2015, 1954, 1942)), row.names = c(NA,
10L), class = "data.frame")
po_combo_model_w_offset <- glm(formula = retweet_count ~
post_length +
useful_information_yn +
offset(log(diffdate)),
data = misper_tweets[misper_tweets$diffdate != 0,], family="poisson")
makeRegressionPlots(po_combo_model_w_offset)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.