Description Usage Arguments Details Value Examples
View source: R/podlove_episode_regression.R
This function takes data from a podlove_downloads_until()
and calculates
a regression model with downloads as outcome variable. This allows to find
out if the podcast gains or loses listeners over successive episodes.
1 2 3 4 5 | podlove_episode_regression(
df_regression_data,
terms = "post_datehour",
printout = TRUE
)
|
df_regression_data |
a tidy data table created by |
terms |
terms (predictors) of the linear model as string. Usually
contains at least one time or order based variable such as |
printout |
switcher to print out the model's summary after calculation. |
Details
a linear reression model created by lm()
.
1 2 3 4 5 6 | ## Not run:
# linear regression for downloads on day 3 by episode release date
dl <- podlove_downloads_until(podcast_example_data, points_in_time = 3)
podlove_episode_regression(dl, terms = "post_datehour")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.