Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: help with xtserial


From   Erik Lakomaa <Erik.Lakomaa@hhs.se>
To   statalist@hsphsun2.harvard.edu
Subject   st: help with xtserial
Date   Thu, 26 Jun 2008 17:23:54 +0200

Dear all

I have a problem using the Xtseial test for autocorrelation.

I have a panel data model and the xtreg command works 

tsset city year
*xtset 

xtreg a b c d, fe

xtserial a b c d


That gives 

"no observations
r(2000);"

Can you help me out?

Best

Erik


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Austin
Nichols
Sent: den 26 juni 2008 16:38
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: RE: Problem with METAN (forest plot)...

Julien--
You can just make your own graph using the variables created by -metan-:

    By default, metan adds the following new variables to the dataset:

        _ES        Effect size (ES)
        _seES      Standard error of ES
        _selogES   Standard error of log ES
        _LCI       Lower confidence limit for ES
        _UCI       Upper confidence limit for ES
        _WT        Study percentage weight
        _SS        Study sample size

and use the -xscale(log)- option and any others you like in the graph
command.

E.g.
use http://fmwww.bc.edu/repec/bocode/m/metan_example_data, clear
replace tmean=tm+10
metan tsample tmean tsd csample cmean csd, by(type_study)
gsort type_study -id
g nid=_n
loc o "leg(off) yti(" ") yli(10.5) barw(.01) horiz color(gray white)
yla("
forv i=1/20 {
  loc o `"`o' `i' "`=id[`i']'" "'
 }
loc o `"`o' , angle(0))"'
tw spike _UCI _LCI nid, `o' || sc nid _ES, name(notlog)
tw spike _UCI _LCI nid, xsc(log) `o' || sc nid _ES, xsc(log)


On Thu, Jun 26, 2008 at 6:50 AM, Nick Cox <n.j.cox@durham.ac.uk> wrote:
> I have not tried it but it seems that -metan- (from SJ 8(1)) should
> support -xsc(log)-.
>
> However, all that would do is take the graph that would be displayed
and
> change that one detail. No calculations would be carried out on a log
> scale.
>
> Nick
> n.j.cox@durham.ac.uk
>
> Julien D.
>
> I would like to make a forest plot to graphicaly present results from
> stratified analyses with different subgroups (men, women, diabetics,
no
> diabetics...)
> I use the METAN module with 3 cols table (OR, lower and upper
confidence
>
> interval) but I am embarass with large confidence interval (1.7-52.3
for
>
> example) and would like to use a log scale for axis...
>
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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