0
$\begingroup$

1. I tried numerous software packages, including PASS, but it appears that they can only be used when the model contains a single variable. So I was wondering if there was a function (mostly in R) or software that could be used when there are additional variables in the model. 2. Also, if the value of correlation between the variable of interest and the other covariates in the model is unknown, is there any method to compute the sample size.

$\endgroup$

1 Answer 1

0
$\begingroup$

While I am not 100% sure, it is very unlikely that there is an analytic solution for either of these problems. The various power software programs are usually very quick to add capabilities when they become known.

So, you will probably have to simulate the data and do power analysis that way.

$\endgroup$
2
  • $\begingroup$ We need to know the goal of the analysis. Is it to estimate the adjusted effect of a single variable, or to get a reliable overall model? $\endgroup$ Commented Jun 18 at 12:32
  • $\begingroup$ @ Frank Harrell, Dear Professor Harrell, thank you so much for your remark. The purpose is to estimate the adjusted effect of a single variable. The model includes a variable of interest (binary) and four other covariates. However, I would be grateful if you could please supply the solution for both scenarios (estimate the adjusted effect of a single variable and also obtaining a reliable overall model). $\endgroup$
    – Stat2024
    Commented Jun 18 at 14:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.