makeHockeyStick | R Documentation |
Creating Hockey-stick covariates
makeHockeyStick(data, covariate, varName)
data |
a dataframe containing the dataset that needs to be used |
covariate |
the covariate that needs to be converted to hockey-stick; must be present in the data |
varName |
the variable name to which the given covariate is to be added |
a list of updated data with covariates added, an expression that needs to be added to the model expression, the list of covariate names, and the column names corresponding to the hockey-stick covariates
Vipul Mann, Matthew Fidler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.