add_time_function_vars {SimTimeVar} | R Documentation |
Creates linear time-function variables
Description
Given variable-specific slopes and intercepts for a cluster, creates continuous variables that
increase or
decrease linearly in time (with normal error with standard deviation error.SD
) and
adds them to the dataframe.
Usage
add_time_function_vars(d4, obs, parameters)
Arguments
d4 |
The dataframe to which to add the time-function variables. |
obs |
The number of observations per cluster. |
parameters |
The parameters matrix. |
Details
See make_one_dataset
for additional information.
[Package SimTimeVar version 1.0.0 Index]