Description Usage Arguments Details Value See Also Examples
If object
has a dimension with dimtype
"Iterations"
, then perturb
returns n
randomly-selected
iterations. Otherwise, it fits a log-linear model to the data and uses this
to randomly generate n
iterations. The log-linear model by default
contains 2-way interactions; higher or lower values can be specified via
order
.
1 2 3 4 |
object |
Object of class |
n |
Number of iterations to generate. |
order |
Order of interations used in log-linear models. |
phi |
A positive number governing the amount of random noise: higher values imply more variation. |
subtotals |
Not implemented yet |
Arguments order
and phi
only have an effect when a log-linear
model is fitted - in other words, when object
does not have dimtype
"Iterations"
.
object
can contain missing values, though if a log-linear model is
fitted, there must be sufficient observations for a model with order-way
interations.
An object of the same class as object
. If n > 1
, the
return value has a dimension with dimtype "Iterations"
; otherwise it
does not.
The log-linear model is fitted using loglm
.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.