pwr2ppl (version 0.1.1)

md_prec: Compute Precision Analyses for Mean Differences

Description

Compute Precision Analyses for Mean Differences

Usage

md_prec(m1, m2, s1, s2, nlow, nhigh, propn1 = 0.5, ci = 0.95, by = 1)

Arguments

m1

Mean of first group

m2

Mean of second group

s1

Standard deviation of first group

s2

Standard deviation of second group

nlow

starting sample size

nhigh

ending sample size

propn1

Proportion in First Group

ci

Type of Confidence Interval (e.g., .95)

by

Incremental increase in sample (e.g. nlow = 10, nhigh = 24, by = 2, produces estimates of 10, 12, and 14)

Value

Precision Analyses for Mean Differences

Examples

Run this code
# NOT RUN {
md_prec(m1=2,m2 =0, s1=5, s2=5,nlow=100, nhigh =1600, propn1=.5, ci=.95, by=100)
md_prec(m1=0,m2 =0, s1=5, s2=5,nlow=100, nhigh =40000, propn1=.5, ci=.95, by=1000)
# }

Run the code above in your browser using DataCamp Workspace