Re: Calculating percent change using panel data set

Posted by Ruben Geert van den Berg on
URL: http://spssx-discussion.165.s1.nabble.com/Calculating-percent-change-using-panel-data-set-tp5713457p5713491.html

Dear Ginny,

I don't entirely see the point to this, but it certainly isn't a problem. Just run

new file.
input program.
loop id=1 to 8000.
leave id.
loop v2=2008 to 2011.
comp v1=rv.uni(0,100).
end case.
end loop.
end loop.
end file.
end input program.
exe.
variable labels id"Hospital number" v1"Unemployment rate"v2"Year".
formats v1(pct2.0)v2(f4.0).

Best,

Ruben

> Date: Sat, 2 Jun 2012 08:13:13 -0700

> From: [hidden email]
> Subject: Re: Calculating percent change using panel data set
> To: [hidden email]
>
> Hello Art,
> Thanks for taking your time to respond to my cry out for help. The data I
> provided was just an example and I actually have more than 8000
> observations. How can I enter the begining and end of data list without
> typing every observations hospital by year?
> Kind Regards,
> Ginny
>
>
> --
> View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Calculating-percent-change-using-panel-data-set-tp5713457p5713488.html
> Sent from the SPSSX Discussion mailing list archive at Nabble.com.
>
> =====================
> To manage your subscription to SPSSX-L, send a message to
> [hidden email] (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD