ri.m.demo: Simulation to demonstrate the meaning of the replication...

Description Usage Arguments Value Examples

Description

Simulation to demonstrate the meaning of the replication interval for the mean

Usage

1
2
ri.m.demo(n = 10, rep.n = NA, mu = 0, sigma = 1,
  number.trials = 10000, prob.level = 0.95, show.all.trials = FALSE)

Arguments

n

Original study: Sample size

rep.n

(optional) Replication study: Sample size. If not specified, n is used.

mu

All samples are drawn from a common population. This specifies the population correlation.

sigma

All samples are drawn from a common population. This specifies the population standard deviation.

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.

show.all.trials

Show original correlation, replication interval, replication correlation, and whether replication effect is in the interval.

Value

The replication interval and related statistics in list format.

Examples

1
ri.m.demo(n=150,mu=0,sigma=1,number.trials=10)

replicationInterval documentation built on May 2, 2019, 3:35 p.m.