plot.bootEM: Plot Bootstrap Likelihood Ratio Test

Description Usage Arguments Details See Also Examples

View source: R/plot.bootEM.R

Description

This function is the plot method for the class bootEM.

Usage

1
2
## S3 method for class 'bootEM'
plot(x, ...)

Arguments

x

an object of class bootEM, which is the output of the function bs.test.

...

the other parameters passed to the function hist

Details

The histogram of the bootstrap LRT statistics w_1 is plotted, with the observed LRT statistic imposed in a red vertical line.

See Also

bs.test

Examples

1
2
3
4
5
## plotting the bootstrap LRT result
set.seed(100)
x <- rmixnormal(200, c(0.5, 0.5), c(2, 5), c(1, 0.7))
ret <- bs.test(x, ncomp = c(2, 3), B = 30)
plot(ret)

mixR documentation built on June 1, 2021, 5:07 p.m.