The week code is incorrect, and the week starts on Wednesday instead of Monday, which has persisted for a long time, even after the update. The following is a very short example, which is also added to the attachments.
clear all
range Date 22159 22258 100
format %td Date
g Day=dow(Date)
g week=week(Date)
(last line to correct for the error)
replace week=week[_n+2]
As the data editor shows the week numbers change on the third day, i.e., Wednesday, rather than Monday. These hiccups in the program, which also appear elsewhere (for example there is no difference in output between a vvthin and a vvvthin line), make me question the reliability of the more important output, as regressions.
I hope someone can explain these mistakes.
Related Posts with Faults and Hiccups in the program
Calculate vertical spilloversDear Stata users I would like to construct vertical spillovers of fdi for upstream and downstream in…
Converting GPS data from Decimal Minutes Seconds to Decimal DegreesHi Statalisters, I need to convert GPS longitude and latitude data from the Decimal Minutes Second …
puexcel with command tabulateHello everyone, I am currently experimenting with "putexcel" on STATA16. I have no problem reportin…
third root for negative valuesHey guys, I have positive and negative values and a lot of outliers in my data. Therefore I decided…
spivregI use the spivreg routine from STATA and would like to compare the estimates obtained with the usual…
Subscribe to:
Post Comments (Atom)
0 Response to Faults and Hiccups in the program
Post a Comment