Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Posthoc power analysis for linear mixed effect model


From   Jeph Herrin <[email protected]>
To   [email protected]
Subject   Re: st: Posthoc power analysis for linear mixed effect model
Date   Fri, 07 Mar 2014 16:22:12 -0500

I think this better explains the approach:

  http://www.stata-journal.com/sjpdf.html?articlenum=st0010

cheers,
jeph

On 3/7/2014 3:58 PM, Lance Erickson wrote:
Jeph,

Is the content at this link to the UCLA help pages (http://www.ats.ucla.edu/stat/stata/code/simulate.htm) a reasonable example of the approach you take? I'm referring to the first of the two examples they show.

By '"known" true value' do you mean the coefficients estimated from the existing data?

Thanks,
Lance

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Jeph Herrin
Sent: Friday, March 07, 2014 1:29 PM
To: [email protected]
Subject: Re: st: Posthoc power analysis for linear mixed effect model

Generally, I usually do these using simulation.  That is, simulate a large number of datasets similar to the one you have but with values generated by a random process based on a "known" true value. Then to see how much power the model has, calculate the proportion of datasets where the model rejects the null hypothesis. -xtmixed- will take a while to run on all of the datasets, but it's not too bad if you only have one effect you want to estimate the power to detect.

hth,
Jeph


On 3/7/2014 2:55 PM, Mohammod Mostazir wrote:
Dear great stat-warriors,

I need some Stata related H--E--L--P here. I have a dataset that has
repeated BMI (Body Mass Index; continuous scale) measurements of 10
equally spaced annual time points from 140 cases. The interest is to
observed change in BMI in relation to other time-constant and
time-varying co-variates. The analysis I have carried out is linear
mixed effect model using Stata's 'xtmixed' command with random
intercepts and slopes.  Now I would like to carry out a posthoc power
analysis to see how much power the study has. Is there any light in
Stata in relation to this? I have seen Stata's ''power repeated''
command which does not suit here as they are suitable for one/two way
repeated ANOVA designs.

Any comment is highly appreciated. Thanks for reading.

Best,

Mos
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index