Description Usage Arguments Value Author(s) Examples
View source: R/boot.ergoInfo.R
Computes a parametric Bootstrap Test for the Ergodicity Information Index, comparing the
empirical Ergodicity Information index to values obtained in data generated using N
parametric bootstraps of the correlation matrix estimated using the
dynEGA
function, for the population structure. The pvalues in the bootstrap test can be calculated as (sum(EII>=boot.EII)+1)/(iter+1)
and as
(sum(EII<=boot.EII)+1)/(iter+1)
, where EII is the empirical Ergodicity Information Index, boot.EII is the values of the Ergodicity Information Index obtained
in the bootstraped samples, and iter
is the number of random samples generated in the simulation. The twosided pvalue is computed as two times the lowest pvalue. In the bootstrap Test for the Ergodicity Information Index,
the null hypothesis is that the empirical value of EII is equal to the values of EII obtained in multiple individuals with the same structure as the population structure estimated
via dynEGA
.
Small values of p indicate that is very unlikely to obtain an EII as large as the one obtained in the empirical sample if the null hypothesis is true (i.e. all individuals have the same structure as the population structure), thus there is convincing evidence that the empirical Ergodicity Information Index is
different than it could be expected if all individuals had a similar latent structure.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 
dynEGA.pop 
A dynEGA or a dynEGA.pop.ind object. 
iter 
Numeric integer.
Number of random samples to generate in the MonteCarlo simulation.
At least 
EII 
Numeric.
Empirical Ergodicity Information Index obtained via the 
use 
Character.
A string indicating what network element will be used to compute the algorithm complexity in the

embed 
Integer.
Number of embedded dimensions (the number of observations to be used in the 
tau 
Integer.
Number of observations to offset successive embeddings in the 
delta 
Integer.
The time between successive observations in the time series.
Default is 
derivatives 
Integer. The order of the derivative to be used in the EGA procedure. Default to 1. 
model 
Character.
A string indicating the method to use. Defaults to

model.args 
List.
A list of additional arguments for 
algorithm 
A string indicating the algorithm to use or a function from Current options are:

algorithm.args 
List.
A list of additional arguments for 
corr 
Type of correlation matrix to compute. The default uses

ncores 
Numeric.
Number of cores to use in computing results.
Defaults to If you're unsure how many cores your computer has,
then use the following code: 
... 
Additional arguments.
Used for deprecated arguments from previous versions of 
Returns a list containing:
boot.ergoInfo 
The values of the Ergodicity Information Index obtained in the MonteCarlo Simulation 
p.value.twosided 
The pvalue of the MonteCarlo test for the Ergodicity Information Index. The null hypothesis is that the empirical Ergodicity Information index is equal to the expected value of the EII if the all individuals had similar latent structures. 
effect 
Indicates wheter the empirical EII is greater or less then the MonteCarlo obtained EII. 
plot.dist 
Histogram of the bootstrapped ergodicity information index 
Hudson Golino <hfg9s at virginia.edu>
1 2 3 4 5 6 7 8 9 10 11 12 13  ## Not run:
\donttest{
dyn1 < dynEGA.ind.pop(data = sim.dynEGA[,c(22)], n.embed = 5, tau = 1,
delta = 1, id = 21, use.derivatives = 1,
model = "glasso", ncores = 2, corr = "pearson")
eii1 < ergoInfo(data = dyn1)$EII
testing.ergoinfo < boot.ergoInfo(dynEGA.pop = dyn1, iter = 10,EII = eii1,
embed = 5, tau = 1, delta = 1, derivatives = 1,
model = "glasso", ncores = 2, corr = "pearson")
}
## End(Not run)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.