pi.r.demo {predictionInterval} | R Documentation |
Simulation to demonstrate the meaning of the correlation prediction interval
Description
Simulation to demonstrate the meaning of the correlation prediction interval
Usage
pi.r.demo(n = 100, rep.n = NA, rho = 0.5, number.trials = 10000,
prob.level = 0.95, bias.correction = FALSE)
Arguments
n |
Original study: Sample size |
rep.n |
(optional) Replication study: Sample size. If not specified, n is used. |
rho |
All samples are drawn from a common population. This specifies the population correlation. |
number.trials |
Indicate the number of pairs of sample (original, replication) that should be used. 10,000 or higher suggested for stable results. |
prob.level |
(optional 0 to 1 value) Probability level desired (0 to 1). If not specified .95 (i.e., 95 percent) will be used. |
bias.correction |
Apply bias correction formula to d-values. |
Value
The prediction interval capture percentage and related statistics in list format.
Examples
pi.r.demo(n=100,rho=.50,number.trials=10)
[Package predictionInterval version 1.0.0 Index]