sim_cp0: generate random cp parameters or persistence times

View source: R/fun_CP.R

sim_cp0R Documentation

generate random cp parameters or persistence times

Description

Given a fitted cp model (survreg object), generate random pda and pdb parameters or random persistence times. NOTE: This function is likely to move to call GenEst's rcp in future. This will not change the results, but the GenEst version is more nicely coded and keeping some coherence among the models is helpful.

Usage

sim_cp0(cpmodel, nsim, option = "parms")

Arguments

cpmodel

Fitted cp model ((survreg object))

nsim

Number of simulation draws

option

option = "parms" returns random draws of parameters from the fitted model; option != "parms" returns random draws of carcass persistence times

Value

answer


eoa3 documentation built on April 3, 2025, 6:10 p.m.

Related to sim_cp0 in eoa3...