This class contains the results of Bollen-Stine bootstrap with missing data.
Objects can be created via the bsBootMiss
function.
time
:A list containing 2 difftime
objects (transform
and fit
), indicating the time elapsed for data transformation and for fitting the model to bootstrap data sets, respectively.
transData
:Transformed data
bootDist
:The vector of chi-square values from Bootstrap data sets fitted by the target model
origChi
:The chi-square value from the original data set
df
:The degree of freedom of the model
bootP
:The p-value comparing the original chi-square with the bootstrap distribution
signature(object = "BootMiss"):
The show
function is used to display the results of the Bollen-Stine bootstrap.
signature(object = "BootMiss"):
The summary function prints the same information from the show
method, but also provides information about the time elapsed, as well as the expected (theoretical) and observed (bootstrap) mean and variance of the chi-squared distribution.
signature(x = "BootMiss", ..., alpha = .05, nd = 2, printLegend = TRUE, legendArgs = list(x = "topleft")):
The hist
function provides a histogram for the bootstrap distribution of chi-squared, including observed and critical values from the specified alpha
level. The user can also specify additional graphical parameters to hist
via ...
, as well as pass a list of arguments to an optional legend
via legendArgs
. If the user wants more control over customization, hist
returns a list of length == 2
, containing the arguments for the call to hist
and the arguments to the call for legend
, respectively.
# NOT RUN {
# See the example from the bsBootMiss function
# }
Run the code above in your browser using DataLab