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
Creating a new variable with the first observationHi all, I have panel data for the year 2000-2014. I want to create a new variable county2000 which …
Non-parametric regression estimations to understand relationship between 2 variables: npregress, lpoly vs lowessI am trying to understand the relationship between two variables with non-parametric regressions usi…
VECM diagnostics and testsDear all, I have four variables, one of which is the price of crude oil and the other three variabl…
Interaction in linear regressionI have a question regarding interaction in linear regression: For example, I have run a regression …
Issue importing files using xls2dtaCode Code: tempfile baseline save `baseline' cd "/Users/kalikyo/Desktop/Anthony/Uganda/2022 second…
Subscribe to:
Post Comments (Atom)
0 Response to Faults and Hiccups in the program
Post a Comment