Step-change in comment volume, from a reference month to now
Source:R/table-activity.R
num_comments_step_change_tbl.RdThe issue_rate_tbl(metric = "comments") analogue of
author_density_step_change_tbl(): for each of several sources, compare
each popularity stratum's comment rate (n_comments, normalized by
repo-months of exposure) at a fixed reference month against its most recent
value, estimated from linear regression rates.
Usage
num_comments_step_change_tbl(
issue_authors_tbl,
repo_tbl,
sources,
n_strata = 4L,
window = 12L,
ref_date = as.Date("2021-01-01")
)Arguments
As returned by
fetch_issue_authors().- repo_tbl
As returned by
build_repo_tbl().- sources
Character vector of
source_namevalues to include (seeissue_rate_tbl()).- n_strata
Number of popularity strata, passed to
issue_rate_tbl().n_strata = 1pools every repo into a single, unstratified rate and dropspopularity_stratumfrom the returned tibble.- window
Passed to
issue_rate_tbl().- ref_date
Reference
Date(first-of-month) to compare against the latest available month.