Fucntion for estimating initial parameter values 'flexsurvreg'
# S3 method for glm
initParm(CFM, DC_clean, trt = trt)
an 'optim' output giving the parameter values to be supplied as a starting value for the mcmc routine.
A counter-factual model
a cleaned dataset obsect obtained using dataComb.flexsurvreg
An optional additional vector denoting treatment allocations for multiple treatment comparisons. Defaults to 'NULL'
This function takes the liklihood for a 'flexsurvreg' model and uses 'optim' to fit the likelihood.