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: Differencing when dependent variable only defined every 4th year


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   RE: st: Differencing when dependent variable only defined every 4th year
Date   Thu, 24 Nov 2011 19:32:10 +0000

Sure, but he still has only one result per election, so I don't see where within-election standard errors come from. 

Nick 
[email protected] 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Richard Herron
Sent: 24 November 2011 19:20
To: [email protected]
Subject: Re: st: Differencing when dependent variable only defined every 4th year

He only wants to carry-forward or fill-in certain independent
variables, correct?

@Nick -- Do you think that clustering standard errors by election
cycle would reduce the problem from the correlation in the
carried-forward ind vars?

On Wed, Nov 23, 2011 at 14:50, Nick Cox <[email protected]> wrote:
> This would, I think, repeat every election year four times. The coefficients might be (about) right, but the df and P-value would be quite wrong. Of course they are probably wrong any way unless the model captures the data generation process, but the sample size is surely just # of election years.
>
> In fact that's a worry independently. How many parameters are being fitted here to data for 1960(4)2008 i.e. just 13 distinct values of the response!
>
> Nick
> [email protected]
>
> Herron
>
> Would you like to carry forward election year data for the following
> three years? The following should replace the empty data with the
> previous election year's data.
>
> tsset state year
> replace x = l.x if (x == .)
>
> On Wed, Nov 23, 2011 at 13:13, Sebastian Barfort <[email protected]> wrote:
>
>> I've encountered a problem in a time series regression I want to do. I have a panel with 49 US states running from 1960-2008. All my independent variables have observations for all years. However, the dependent variable is defined only every other 4th year (it's presidential election data). The regression I want to run is the following:
>>
>> y(t)-y(t-4)=alpha+beta1(x1(t)-x1(t-1))+beta2(x1(t-1)-x1(t-2))+beta3(x2(t)-x2(t-1))+beta4(x2(t-1)-x2(t-2)) etc etc...
>>
>> But how can I do this in Stata? I've defined the data as time series with t=year the time variable, but can't seem to find the right way to go around the problem.

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