ss_multreg | R Documentation |
Calculates the recommended sample size for a multiple regression analysis.
ss_multreg(df, prop = NULL, logistic = FALSE, verbose = TRUE)
df |
Degrees of freedom planned to be introduced |
prop |
Minimum prevalence of the expected event (Required if planned regression is a logistic regression) |
logistic |
Logical operator to indicate wether the planned regression analysis is a logistic regression or not. |
verbose |
Logical operator to indicate wether the results should be printed in console. Default is |
An object class ss_multreg_obj
indicating the sample size calculation for a regression analysis.
Peduzzi P, Concato J, Kemper E, Holford TR, Feinstein AR. A simulation study of the number of events per variable in logistic regression analysis. Journal of Clinical Epidemiology. diciembre de 1996;49(12):1373–9.
Pierdant-Pérez M, Patiño-López MI, Flores-García JA, Jacques-García FA. Implementación de un curso virtual de lectura crítica en estudiantes de medicina durante la pandemia COVID-19. Inv Ed Med. el 1 de octubre de 2023;12(48):64–71.
# Lineal multiple regression with 4 degrees of freedom
ss_multreg(4, logistic = FALSE)
# Logistic multiple regression with 4 degrees of freedom
# and 60% of probability of the event
ss_multreg(4, prop = .6, logistic = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.