ePowerLI: ePowerLI Analysis Function

View source: R/ePowerLI.R

ePowerLIR Documentation

ePowerLI Analysis Function

Description

executes the ePowerLI Analysis Function with given input parameters

Usage

ePowerLI(nSim = 500, visits = 3, n = c(560, 563, 295), x1mean = c(8.8, 12.8, 16.8), x1sd = c(2.1, 2.2, 2.9), x2mean = c(-0.09, 0.02, 0.13), x2sd = c(0.4, 0.4, 0.4), beta1 = c(-0.01), beta2 = c(0.06), betaI = c(-0.004, -0.01, -0.02), Sigma = matrix(c(0.1, 0.07, 0.07, 0.07, 0.1, 0.07, 0.07, 0.07, 0.1), nrow = 3, ncol = 3, byrow = T), alpha = 0.05, plot.pdf = T, plot.label = "", plot.name = "LIplot.pdf", seed = 1)

Arguments

nSim

number of simulations

visits

number of study visits

n

a vector of the number of subjects at each visit

x1mean

is the mean of x1 at each visit

x1sd

is the sd of x1 at each visit

x2mean

is the mean of x2 at each visit

x2sd

is the sd of x2 at each visit

beta1

vector of the main effects for x1 at each visit on the outcome Y

beta2

vector of the main effects for x2 at each visit on the outcome Y

betaI

the vector of effect sizes for the interaction of x1 and x2 on the normally distributed outcome for a range of values (usually at least 2)

Sigma

is the variance covariance matrix for the outcome Y

alpha

alpha

plot.pdf

if this is True then the function will produce a plot in the working directory

plot.label

label for the plot

plot.name

name for the plot

seed

seed value for RNG


SharonLutz/ePowerLI documentation built on Nov. 23, 2024, 11:52 a.m.