lcm_CR_Basic: Class '"lcm_CR_Basic"'

lcm_CR_Basic-classR Documentation

Class "lcm_CR_Basic"

Description

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

Extends

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

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")

Note

Use the convenience function lcmCR to create objects of this class. This class inherits most of its functionality from "MCMCenviron".

Author(s)

Daniel Manrique-Vallier

See Also

lcmCR, MCMCenviron.

Examples

showClass("lcm_CR_Basic")

LCMCR documentation built on May 29, 2024, 3:30 a.m.