Fig9.4: Reproduce Figure 9.4

View source: R/boot-toy.R

Fig9.4R Documentation

Reproduce Figure 9.4

Description

Reproduces Figure 9.4 from the book. If you specify any options, your results may look different.

Usage

Fig9.4(out, B = 100, seed = 2)

Arguments

out

Output of Ex9.1

B

Number of bootstrap replications

seed

Random number seed for reproducibility

Examples

Data <- Ex9.1()
res <- Fig9.4(Data)
covered <- Data$beta >= res$Lower & Data$beta <= res$Upper
mean(covered)
table(Data$varType, covered)

pbreheny/hdrm documentation built on Jan. 17, 2024, 8:53 p.m.