Learn R Programming

LCMCR (version 0.4.14)

lcm_CR_Basic-class: Class "lcm_CR_Basic"

Description

MCMC sampler for the Bayesian non-parametric latent class capture-recapture model.

Arguments

Extends

Class "MCMCenviron", directly. All reference classes extend and inherit methods from "envRefClass".

Author

Daniel Manrique-Vallier

Fields

All fields are read-only.

pointer:

external pointer to the C++ object.

blobsize:

size (in bytes) of the raw object data for serialization. (currently not implemented.)

local_seed:

seed of the internal random number generator.

J:

number of lists in the Capture-Recapture data.

K:

maximum number of latent classes in the model (truncation level of the stick-breaking process).

n:

observed number of individuals.

Captures:

original provided data.

Methods

initialize(data_captures, K, a_alpha, b_alpha, in_list_symbol, len_buffer, subsamp):

Class constructor.

Arguments

data_captures:

input dataset. A data frame with the multiple-recapture data.

K:

maximum number of latent classes. Indicates the truncation level of the stick-breaking process.

a_alpha:

shape parameter of the prior distribution of concentration parameter of the stick-breaking process.

b_alpha:

inverse scale parameter of the prior distribution of concentration parameter of the stick-breaking process.

in_list_symbol:

factor label that indicates that individual is in list (e.g. 'Yes')

buffer_size:

Size of the tracing buffer.

subsamp:

thinning interval for the tracing buffer.

verbose:

logical. Generate progress messages?

The following methods are inherited (from the corresponding class): Change_SubSamp ("MCMCenviron"), Set_Trace ("MCMCenviron"), Change_Trace_Length ("MCMCenviron"), initialize ("MCMCenviron"), Get_Iteration ("MCMCenviron"), Get_Param ("MCMCenviron"), Reset_Traces ("MCMCenviron"), Get_Status ("MCMCenviron"), Update ("MCMCenviron"), Get_Trace_Size ("MCMCenviron"), Get_Trace ("MCMCenviron"), Get_Trace_List ("MCMCenviron"), Get_Param_List ("MCMCenviron"), Init_Model ("MCMCenviron"), Activate_Tracing ("MCMCenviron"), Deactivate_Tracing ("MCMCenviron"), Set_Seed ("MCMCenviron"), show ("MCMCenviron")

See Also

lcmCR, MCMCenviron.

Examples

Run this code
showClass("lcm_CR_Basic")

Run the code above in your browser using DataLab