add_time_function_vars {SimTimeVar} | R Documentation |
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.
add_time_function_vars(d4, obs, parameters)
d4 |
The dataframe to which to add the time-function variables. |
obs |
The number of observations per cluster. |
parameters |
The parameters matrix. |
See make_one_dataset
for additional information.