Here is the command:
tsset GVKEY_n Year
rolling sd_NIBE=r(sd), window (4) clear : su NetIncome
And Stata returns this:
________________
-> GVKEY_n = 100135
Rolling replications (16)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
................
-> GVKEY_n = 100148
Rolling replications (16)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
................
-> GVKEY_n = 100149
Rolling replications (2098001)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
.................eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee 50
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee 100
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee 150
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee 200
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee 250
eeeeeeeeeeeeeeeeeeee--Break--
After it acting weird i have to stop it and if i didnt stop it can go on for half an hour. Is there somethign wrong with my data ?
Related Posts with Trying to do Rolling Standard Deviation give me this error. Can someone help ?
Find the most recent observationHi, I have a year-firm panel data. How should I write the code to find the most recent observation …
Define frequency distribution avoiding repetition of a variableI have 3 variables: CompanyID RoundNumber (from 1 to 16) RoundNumber_max (from 1 to 16) For each co…
Destringing vars and changing commas to dotsHi all I have some datasets in which Italian notation has been used - this means that commas have …
Curious error when listing longI'm working with latitude and longitude variables but I ran into a curious error: Code: clear input…
Unable to cd and use the file in DropboxHi Everyone, I have difficulty to cd the file to Dropbox and use the file in Dropbox. Here are my s…
Subscribe to:
Post Comments (Atom)
0 Response to Trying to do Rolling Standard Deviation give me this error. Can someone help ?
Post a Comment