View source: R/initParm.flexsurvreg.R
initParm.flexsurvreg | R Documentation |
Fucntion for estimating initial parameter values 'flexsurvreg'
## S3 method for class 'flexsurvreg'
initParm(CFM, DC_clean, trt = NULL)
CFM |
A counter-factual model |
DC_clean |
a cleaned dataset obsect obtained using dataComb.flexsurvreg |
trt |
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.
an 'optim' output giving the parameter values to be supplied as a starting value for the mcmc routine.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.