This function computes the partial response for a given trajectory model.
Usage
traj_model_variable_response(
traj_model,
vars = NULL,
lambda = 0.00001,
reverse = FALSE
)
Arguments
- traj_model
A trajectory model object.
- vars
A vector of variables to compute the partial response for. Default is NULL (all variables).
- lambda
A regularization parameter. Default is 1e-5.
- reverse
If TRUE, the partial response is computed for all variables except the ones in vars
. Default is FALSE.
Value
A data frame with the computed partial responses, where the column names are the variables.