Description Usage Arguments Value Author(s) See Also Examples
View source: R/simulateConditional.R
Simulates from the conditional distribution of loglinear models given the sufficient statistics.
1 2 3 4 5 6 7 8 9 10 11  simulateConditional(formula,
data,
dens = hyper,
nosim = 10^3,
method = "bab",
tdf = 3,
maxiter = nosim,
p = NULL,
y.start = NULL)
simtable.bab(args, nosim = NULL, maxiter = NULL)
simtable.cab(args, nosim = NULL, p = NULL, y.start = NULL)

formula 
A formula for the loglinear model 
data 
A data frame 
dens 
The target density on the log scale up to a constant of
proportionallity. A function of the form

nosim 
Desired number of simulations. 
method 
Possibly two values, the importance sampling method of
Booth and Butler, 
tdf 
A tuning parameter 
maxiter 
For 
p 
A tuning parameter for 
y.start 
An optional starting value when 
args 
An object of class "bab" or "cab" 
A matrix where each simulated table is a row.
Brian Caffo
1 2 3 4 5 6 7 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.