Learn R Programming

morseTKTD (version 0.1.3)

Extract: Extraction methods to recover output of fit object.

Description

  • extract_Nsurv_ppc: extract the Nsurv generated with the sampler. To be used for the Posterior Predictive Check (PPC).

  • extract_Nsurv_sim: extract the Nsurv generated with the sampler. To be used for the Simulation (sim).

  • extract_param: extract parameters of SD or IT models.

  • priors_distribution: Return a data.frame with prior density distributions of parameters used in the model.

Usage

extract_Nsurv_ppc(fit)

extract_Nsurv_sim(fit)

extract_param(fit)

priors_distribution(fit, ...)

# S3 method for SurvFit priors_distribution(fit, size_sample = 1000, ...)

Value

a data.frame with the extracted object from stanfit.

Arguments

fit

An object of class SurvFit

...

Further arguments to be passed to generic methods

size_sample

Size of the random generation of the distribution.