Last data update: 2014.03.03

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

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(LCMCR)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/LCMCR/lcm_CR_Basic.Rd_%03d_medium.png", width=480, height=480)
> ### Name: lcm_CR_Basic-class
> ### Title: Class '"lcm_CR_Basic"'
> ### Aliases: lcm_CR_Basic-class lcm_CR_Basic
> ### Keywords: classes
> 
> ### ** Examples
> 
> showClass("lcm_CR_Basic")
Class "lcm_CR_Basic" [package "LCMCR"]

Slots:
                  
Name:       .xData
Class: environment

Extends: 
Class "MCMCenviron", directly
Class "envRefClass", by class "MCMCenviron", distance 2
Class ".environment", by class "MCMCenviron", distance 3
Class "refClass", by class "MCMCenviron", distance 3
Class "environment", by class "MCMCenviron", distance 4, with explicit coerce
Class "refObject", by class "MCMCenviron", distance 4
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>