update.cab: Update method for objects of class cab

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/update.cab.R

Description

An update method for objects created by mcexact when method = 'cab'.

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'cab'
update(object, ...)
cab(args,
    nosim = NULL,
    batchsize = NULL,
    savechain = FALSE,
    p = NULL,
    flush = FALSE)

Arguments

object

Output from mcexact

...

Alternative arguments for the update

args

Output from mcexact

nosim

The number of simulations to be performed in the update

batchsize

A new batchsize

savechain

Saves the chain of goodness-of-fit statistics

p

An updated proportion of simulated tables left fixed.

flush

Should the previous information be discarded? flush should be set to true if the batchsize is changed.

Details

The method update.cab calls the function cab, which is the engine for mcexact when method = 'cab'.

Value

A list of the form outputted from mcexact

Author(s)

Brian S. Caffo

See Also

mcexact

Examples

1
2
3
4
5
6
7
8
9
data(residence.dat)
mcx <- mcexact(y ~ res.1985 + res.1980 + factor(sym.pair),
               data = residence.dat,
               method = "cab",
               p = .5,
               batchsize = 100) 
summary(mcx)
mcx <- update(mcx, nosim = 10 ^ 4)
summary(mcx)

exactLoglinTest documentation built on May 29, 2017, 12:37 p.m.

Search within the exactLoglinTest package
Search all R packages, documentation and source code