LRcont: Compute Power for Logistic Regression with Continuous...

Description Usage Arguments Value Examples

View source: R/LRcont.R

Description

Compute Power for Logistic Regression with Continuous Predictors

Usage

1
LRcont(OR = NA, r = NA, ER = NULL, alpha = 0.05, power = NULL, R2 = 0)

Arguments

OR

Odds Ratio for Predictor of Interest

r

Correlation for Predictor of Interest

ER

Event Ratio Probability of a Desirable Outcome Overall

alpha

Type I error (default is .05)

power

Desired Power

R2

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

Value

Power for Logistic Regression with Continuous Predictors

Examples

1
LRcont(OR = 4.05, ER = .463,power=.95)

Example output

Sample Size = 27 for Odds Ratio = 4.05

pwr2ppl documentation built on April 4, 2021, 9:06 a.m.