Update method for objects of class cab

Share:

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)