powerMS: powerMS

Description Usage Arguments See Also Examples

Description

This function returns the power for multi-site (blocked) trials designs with treatment at level 2 (site level). It addresses the following models:

Usage

1
2
powerMS(n, J, delta, sigmad, rhoL2, numcovL1 = 0, R2L1 = 0,
  randeff = TRUE, alpha = 0.05)

Arguments

n

Number of subjects in level 1 (individual level).

J

Number of units in level 2 (site level).

delta

Standardized effect size.

sigmad

Variance in treatment effects across sites.

rhoL2

Intraclass correlation (ICC) at level 2.

numcovL1

Number of covariate(s) at level 1. Default value is 0.

R2L1

R-squared at level 1. Default value is 0.

randeff

Random site effects. Default value is FALSE.

alpha

Probability of type I error. Default value is 0.05.

See Also

PowerUpR

Examples

1
2
3
4
5
# All arguments are specified
powerMS(n=100,J=40,delta=0.2,sigmad=0.2,rhoL2=0.3,numcovL1=1,R2L1=0.2,randeff=FALSE,alpha=0.05)

# Unspecified arguments take their default values
powerMS(n=100,J=40,delta=0.2,sigmad=0.2,rhoL2=0.3)

bangtle/PowerRTCRT documentation built on May 11, 2019, 6:19 p.m.