seqERboot {ESTER} | R Documentation |
Computes sequential evidence ratios for a given data set and permutation samples
Description
Computes sequential evidence ratios for a given data set as well as
for order_nb
random permutations of this dataset. When data involve repeated
measures (and so multiple lines per subject), a column indicating the
subject "id" should be provided to the id
argument. If nothing
is passed to the id
argument, seqERboot
will suppose
that there is only one observation (i.e., one line) per subject.
Usage
seqERboot(ic, mod1, mod2, nmin, id = NULL, order_nb)
Arguments
ic |
Indicates whether to use the aic or the bic. |
mod1 |
A model of class |
mod2 |
A model of class |
nmin |
Minimum sample size from which start to compute sequential evidence ratios. |
id |
If applicable (i.e., repeated measures), name of the "id" column of your dataframe, in character string. |
order_nb |
Number of permutation samples to evaluate. |
Author(s)
Ladislas Nalborczyk <ladislas.nalborczyk@gmail.com>
See Also
Examples
## Not run:
data(mtcars)
mod1 <- lm(mpg ~ cyl, mtcars)
mod2 <- lm(mpg ~ cyl + disp, mtcars)
seqERboot(ic = bic, mod1, mod2, nmin = 10, order_nb = 20)
## End(Not run)