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]

st: xtmixed variance functions


From   Leslie Roche <[email protected]>
To   [email protected]
Subject   st: xtmixed variance functions
Date   Mon, 7 Mar 2011 12:12:25 -0800

Hi All,
I have been trying to figure out how to specify a variance function in
Stata for within-group heteroscedasticity. I have run into this
problem a few times. Basically, my residuals by predicted plot show a
classic increase in variance. Even though the various residual plots
looked fine, I have tried residuals(independent, by(id)), and
residuals(independent, by(x category)), but none of these worked. The
other residuals options available require a time variable, which I do
not have.

In S-plus (and R), the function I generally use to model this type of
heteroscedasticity is "weights=varPower())". Here, the default
covariate is  ~fitted. Is there a similar function in Stata that is
available outside the base commands? I would prefer not to have to
transform the response variable. Any suggestions much appreciated.

Thanks,
Leslie

*
*   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/


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