linPred: Estimates the linear predictor of a psc object
Description
A function which created a linear predictor from a model and an external
dataset. If required, linear predictors will be provided on the response
scale. For a survival outcome, this will take the form of median survival
estimates.
Usage
linPred(DC_clean, resp = FALSE)
Value
Extracts the linear predictor from a object containing both a counter factual model and a data cohort which is created using the dataComb() fucntion.
Arguments
DC_clean
a cleaned data obhject created using dataComb()
resp
detailing whether the linear predictor shoudl be returned on the natural or response level. Defaults to the natural scale (resp=F)
Details
A function which combines the data from the data cohort against the model parameters of the PSC