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]

From |
William Sankey <[email protected]> |

To |
[email protected] |

Subject |
Re: st: Scoring a Fixed Effects Model on another dataset |

Date |
Wed, 12 Jun 2013 16:39:12 -0400 |

Sure, the dataset is an episode-level dataset for beneficiaries that contains the providers who are giving them care. So the independent variables I have are connected with patient episodes--their chronic conditions, demographic traits, etc. The fixed effects regressions I would like to run are at the provider level. As the two samples contain different episodes for each provider, I want to run a fixed effects model on one sample (Providers being whats fixed) and apply those coefficients to the second sample of episodes (again, same Providers, different episodes). Any further help is greatly appreciated! On Wed, Jun 12, 2013 at 4:22 PM, William Buchanan <[email protected]> wrote: > If the data are from the same subjects (e.g., providers), what is the difference between the measurements? Are you trying to compare the coefficients across two measurement periods? It might be helpful to explain a bit more about your data/goals. > > HTH, > Billy > > Sent from my iPhone > > On Jun 12, 2013, at 15:09, William Sankey <[email protected]> wrote: > >> Right, I would only add that the "people" (here, Providers) in one >> sample are the same people in the second sample (aka, the same >> Providers). So hopefully this should be possible...I would agree that >> it probably would not be the case if the sample had different people. >> That would probably be more similar to a propensity score analysis? >> >> Thanks, >> Will >> >> On Wed, Jun 12, 2013 at 3:53 PM, Lucas <[email protected]> wrote: >>> This is an interesting question. I always thought that fixed effects >>> models give you very good causal effect estimates, but technically the >>> estimates do not apply beyond the sample. >>> >>> Think about it like this: the fixed, subject-specific terms (call them >>> b_0i) capture the effects of all unmeasured aspects of the person. If >>> so, if you use the coefficients b_1 to b_k estimated using Sample 1 on >>> non-estimation Sample 2, you'll obtain predicted values based on those >>> coefficients, but your predicted values will not include the >>> subject-specific effects (i.e., no b_0i estimates) because those were >>> obtained only for each unique person in the estimation sample. >>> >>> Perhaps there is some way to do what you desire of which I am unaware >>> and, if so, I'd love to learn it. But, my current knowledge indicates >>> what you want to do is not really appropriate for the fixed effects >>> model. >>> >>> Sam >>> >>> On Wed, Jun 12, 2013 at 12:31 PM, William Sankey <[email protected]> wrote: >>>> Hi Statalist, >>>> >>>> I have two samples of the same data, my TEST_SAMPLE and >>>> VALIDATION_SAMPLE. I want to run a fixed effects model on my >>>> TEST_SAMPLE and collect the parameter estimates and apply them to the >>>> VALIDATION_SAMPLE. I believe I want to use the predict score command. >>>> After applying these coefficients to the VALIDATION_SAMPLE we want to >>>> compute the predicted value of my dependent variable as to compute the >>>> error. >>>> >>>> So far I believe I am on the right track with the following code: >>>> >>>> use TEST_SAMPLE >>>> xtset PROVIDER >>>> xtreg MARGIN {independent variables}, fe >>>> >>>> use VALIDATION_SAMPLE >>>> predict score >>>> >>>> At this point I'm not sure how to retrieve predicted values of the >>>> dependent variable to compute error. Also, if others have experience >>>> with this kind of procedure and used a different method they would >>>> recommend, I would appreciate it. >>>> >>>> Any insight would be greatly appreciated. >>>> >>>> Best, >>>> Will >>>> -- >>>> William J. Sankey >>>> Johns Hopkins University >>>> MA Public Policy '12 >>>> * >>>> * 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/ >> >> >> >> -- >> William J. Sankey >> Johns Hopkins University >> MA Public Policy '12 >> * >> * 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/ -- William J. Sankey Johns Hopkins University MA Public Policy '12 * * 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/

**Follow-Ups**:**st: Cohen'd in STATA 12***From:*Alberto Soriano Maldonado <[email protected]>

**References**:**st: Scoring a Fixed Effects Model on another dataset***From:*William Sankey <[email protected]>

**Re: st: Scoring a Fixed Effects Model on another dataset***From:*Lucas <[email protected]>

**Re: st: Scoring a Fixed Effects Model on another dataset***From:*William Sankey <[email protected]>

**Re: st: Scoring a Fixed Effects Model on another dataset***From:*William Buchanan <[email protected]>

- Prev by Date:
**Re: st: matching children and parents** - Next by Date:
**Re: st: How can I get the second last non-missing value?** - Previous by thread:
**Re: st: Scoring a Fixed Effects Model on another dataset** - Next by thread:
**st: Cohen'd in STATA 12** - Index(es):