Modify existing model
modifyExistingModel.Rd
Modify an existing model by updating its coefficients
Arguments
- modelDir
The directory where all the outcome models are stored.
- outcomeId
The outcome id of the predicted by the model being modified
- exposureIds
The exposure ids for which the model will be modified. If set to -1, all exposures will be affected the same. Consequently, no effect modification will be present.
- newBetas
A list of data frames with columns
column_label
andestimate
. Columncolumn_label
contains the covariate id for which the coefficient will be replaced by columnestimate
. Should be the same length asexposureIds
, unlessexposureIds
is -1.