ci.lc.stdmean.bs: Confidence interval for a standardized linear contrast of...

View source: R/statpsych1.R

ci.lc.stdmean.bsR Documentation

Confidence interval for a standardized linear contrast of means in a between-subjects design

Description

Computes confidence intervals for a population standardized linear contrast of means in a between-subjects design. The unweighted standardizer is recommended in experimental designs. The weighted standardizer is recommended in nonexperimental designs with simple random sampling. The group 1 standardizer is useful in both experimental and nonexperimental designs. Equality of variances is not assumed.

Usage

ci.lc.stdmean.bs(alpha, m, sd, n, v)

Arguments

alpha

alpha level for 1-alpha confidence

m

vector of estimated group means

sd

vector of estimated group standard deviation

n

vector of sample sizes

v

vector of between-subjects contrast coefficients

Value

Returns a 3-row matrix. The columns are:

  • Estimate - bias adjusted standardized linear contrast

  • SE - standard error

  • LL - lower limit of the confidence interval

  • UL - upper limit of the confidence interval

References

\insertRef

Bonett2008statpsych

Examples

m <- c(33.5, 37.9, 38.0, 44.1)
sd <- c(3.84, 3.84, 3.65, 4.98)
n <- c(10,10,10,10)
v <- c(.5, .5, -.5, -.5)
ci.lc.stdmean.bs(.05, m, sd, n, v)

# Should return:
#                           Estimate        SE        LL         UL
# Unweighted standardizer: -1.273964 0.3692800 -2.025039 -0.5774878
# Weighted standardizer:   -1.273964 0.3514511 -1.990095 -0.6124317
# Group 1 standardizer:    -1.273810 0.4849842 -2.343781 -0.4426775



statpsych documentation built on July 9, 2023, 6:50 p.m.