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

From |
"Martin Weiss" <martin.weiss1@gmx.de> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
Re: Corrected repost: Two general questions about xt commmands and re / fe |

Date |
Sat, 11 Apr 2009 23:48:37 +0200 |

<> Just try it out for the first question: *** clear* inp obs_rrt T unit 0 5 4 3 6 4 2 7 4 4 8 4 3 9 4 1 10 4 3 2 3 1 3 3 1 4 3 1 5 3 0 6 3 1 7 3 end xtset unit T, monthly //Does not converge //xtpoisson obs_rrt, re //Does converge, different model xtpoisson obs_rrt T, re ***

HTH Martin _______________________

To: <statalist@hsphsun2.harvard.edu> Sent: Saturday, April 11, 2009 11:37 PM

Hi I am using Stata 9.2 on windows.I am fitting an xtpoisson model to unbalanced panel data (n counts ofdeathover T months), with a grouping variable called unit that signifies theICUwhere the data come from. E.g obs_rrt T unit 0 5 4 3 6 4 2 7 4 4 8 4 3 9 4 1 10 4 3 2 3 1 3 3 1 4 3 1 5 3 0 6 3 1 7 3 Question 1. When I specify tis T my understanding is that this does not explicitly model T in the model (Iwant to model the death rate in relationship to time, amongst otherthings),and I would have to specify T in the command line to do this. Is this correct? Question 2. I would like to specify T and some other exposure covariates as fixedeffects, and unit as a random effect in the model. If I specify all oftheseas independent variables in the command line, and then use the re option,how can I tell which is modelled as fixed, and which is modelled asrandom?Thanks, Mark Marshall * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/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/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**Corrected repost: Two general questions about xt commmands and re / fe***From:*"Mark Marshall" <mrmarsh@woosh.co.nz>

- Prev by Date:
**Corrected repost: Two general questions about xt commmands and re / fe** - Next by Date:
**Re: Corrected repost: Two general questions about xt commmands and re / fe** - Previous by thread:
**Corrected repost: Two general questions about xt commmands and re / fe** - Next by thread:
**Re: Corrected repost: Two general questions about xt commmands and re / fe** - Index(es):

© Copyright 1996–2015 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |