Learn R Programming

psc (version 1.2.0)

initParm.flexsurvreg: Fucntion for estimating initial parameter values 'flexsurvreg'

Description

Fucntion for estimating initial parameter values 'flexsurvreg'

Usage

# S3 method for flexsurvreg
initParm(CFM, DC_clean, trt = NULL)

Value

an 'optim' output giving the parameter values to be supplied as a starting value for the mcmc routine.

Arguments

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'

Details

This function takes the liklihood for a 'flexsurvreg' model and uses 'optim' to fit the likelihood.