Hello STATLIST,
I'm trying to extract a time period to do my analysis, I used the following code, but STATA keeps complaining "too few quotes", I don't know what is the problem?
//////////////////////////////the code///////////////////
numdate monthly mdate= date, pattern (YM)
tsset mdate
format mdate %tm
generate byte extract = inrange(mdate, date("1970-01", "YM), date("2011-12", "YM"))
////////////////////////
thanks in advance
Related Posts with extracting a period of time
Iteratively saving output to matrixHi all, I have one of the classic problems. Saving output from a regression to a matrix. I tried to…
Equality of regression coefficients when estimating regressions with same covariates and different outcomesConsider a setting where the RHS of the two equations is identical, what is different is the LHS out…
Common currency dummy should be zero with the same pair country?Hello to everyone. I am working in a gravity model with 133 countries from 2005 to 2018 and I am es…
Correction for multiple comparisons for combination of coefficients (lincom) on a multiple linear regression modelHi! I’m examining how the change in right ventricle systolic function (RVSF) between persons with ch…
Generate time-variable for panel data in long formatDear All, this is my first post here. Excuse me for doing anything wrong. I have a question I cannot…
Subscribe to:
Post Comments (Atom)
0 Response to extracting a period of time
Post a Comment