PRMap: Analytical power calculation for PRM design problem

Description Usage Arguments Value References

Description

Due to its nature of composite null hypothesis, it is not trivial to derive the analytical power calculation. We develop an average log likelihood based approach to quickly compute the power.

Usage

1
PRMap(alpha = 0.05, n, m, s2w, s2b, mu, rho, REML = TRUE)

Arguments

alpha

desired significance level. Default to 0.05

n

number of subjects

m

number of repeated measures for each subject

s2w

within subject variation

s2b

between subject variation

mu

mean measure difference

rho

null threshold of acceptable RMS value

REML

using REML instead of MLE. Default to TRUE.

Value

xq

computed quantile for the QMS test statistic

size

computed actual type I error

pwr

computed power

par0

estimated null parameter values

References

Bai,Y., Wang,Z., Lystig,T.C., and Wu,B. (2018) Statistical test with sample size and power calculation for paired repeated measures designs of method comparison studies.


baolinwu/SPprm documentation built on May 9, 2019, 8:41 a.m.