Description Usage Arguments Details Value
View source: R/viz_no_in_caliper.R
Counts the number (or percentage) of previous observations within a specific caliper with over time.
1 | no_in_caliper(cw, df, first_t, percentage)
|
cw |
Caliper width value. |
df |
Data frame containing the pooling variables and time. The first column needs to be called "t" and contain the timepoint. It needs to be an unbroken sequence of integers. The rest of the columns should be continuous pooling variables (local?). |
first_t |
Timepoint ("t") from which to start counting. Needs to be greater than the smallest "t"-value in df. |
percentage |
Should the number of observations within the caliper (FALSE) or the percentage within (TRUE) be returned? |
Details go here.
A data.frame with columns count (numer of observation within caliper), cw_val (caliper width), and time (time point).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.