Re: [R] Code modification for post-hoc power

2019-08-27 Thread Michael Dewey
getting stuck with a confusing error message sent earlier I don't understand. Best, Anne -Message d'origine- De : Michael Dewey [mailto:li...@dewey.myzen.co.uk] Envoyé : lundi, 26 août 2019 18:29 À : Marc Schwartz ; CHATTON Anne Cc : R-help Objet : Re: [R] Code modificati

Re: [R] Code modification for post-hoc power

2019-08-27 Thread Michael Dewey
confusing error message sent earlier I don't understand. Best, Anne -Message d'origine- De : Michael Dewey [mailto:li...@dewey.myzen.co.uk] Envoyé : lundi, 26 août 2019 18:29 À : Marc Schwartz ; CHATTON Anne Cc : R-help Objet : Re: [R] Code modification for post-hoc power Dea

Re: [R] Code modification for post-hoc power

2019-08-27 Thread CHATTON Anne via R-help
yzen.co.uk] Envoyé : lundi, 26 août 2019 18:29 À : Marc Schwartz ; CHATTON Anne Cc : R-help Objet : Re: [R] Code modification for post-hoc power Dear Anne In addition to Marc's comments if you are forced to do this then, assuming your package computes sample size from power then just fee

Re: [R] Code modification for post-hoc power

2019-08-26 Thread peter dalgaard
That doesn't work. In caricature, post-hoc power is - I observe a difference of nearly zero - However, to find a significant difference of that size I'd need 20 observations - I only used 100 observations - Therefore my study is useless and can be discarded (or: I calculate the probability

Re: [R] Code modification for post-hoc power

2019-08-26 Thread Michael Dewey
Dear Anne In addition to Marc's comments if you are forced to do this then, assuming your package computes sample size from power then just feed it a range of powers and find the one for which it calculates the sample size you had. There is a more elegant way to do this using uniroot but brut

Re: [R] Code modification for post-hoc power

2019-08-26 Thread Marc Schwartz via R-help
> On Aug 26, 2019, at 6:24 AM, CHATTON Anne via R-help > wrote: > > Hello everybody, > > I am trying to accommodate the R codes provided by Donohue for sample size > calculation in the package "longpower" with lmmpower function to estimate the > post-hoc power (asked by a reviewer) of a bin

[R] Code modification for post-hoc power

2019-08-26 Thread CHATTON Anne via R-help
Hello everybody, I am trying to accommodate the R codes provided by Donohue for sample size calculation in the package "longpower" with lmmpower function to estimate the post-hoc power (asked by a reviewer) of a binary GEE model with a three-way interaction (time x condition x continuous predic