pwr2ppl (version 0.5.0)

LRcat: Compute Power for Logistic Regression with a Single Categorical Predictor

Description

Compute Power for Logistic Regression with a Single Categorical Predictor

Usage

LRcat(p0 = NULL, p1 = NULL, prop = 0.5, alpha = 0.05, power, R2 = 0)

Value

Power for Logistic Regression with a Single Categorical Predictor

Arguments

p0

Probability of a Desirable Outcome in the Control Condition

p1

Probability of a Desirable Outcome in the Treatment Condition

prop

Proportion in the Treatment Condition

alpha

Type I error (default is .05)

power

Desired Power

R2

How Well Predictor of Interest is Explained by Other Predictors (default is 0)

Examples

Run this code
LRcat(p0=.137,p1=.611,prop =.689,power=.95)

Run the code above in your browser using DataLab