Description Usage Arguments Value
View source: R/set_cp_function.R
Set a change point and fit a cubic model on data prior to the change point to obtian expected SSD visits/calculate misses
1 2 3 4 5 6 7 8 |
data |
A dataframe output by count_prior_events_truven |
var_name |
A character string of outcome for which to apply analysis |
return_miss_only |
Logical to only return miss information |
return_eval_only |
Logical to only return model evaluation criteria info |
week_period |
Logical to incorporate a "day of the week" effect into model. Note this is only sensible for one-day period aggregation. |
specify_cp |
A postive integer value for the specific change point you want to use. The value represents the days before the index on which you you want to specify the change point (e.g. 100 would be 100 days before the index) |
A list containing miss information, changepoint information, predictions, the model itself, and a plot of the middle finger curve and model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.