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
How to save the value of a local in another datasetHi all I'd like to store the results of my .do file in a new dataset. For example, I have four di…
[HELP] Creating new variables by splitting another variableHello Statalist-- I have an appended dataset that has a variable named 'filename' which tracks the …
Geodist commandDear Statalist experts I want to use the command geodist to calculate the distance from each indivi…
help with XtsccHi, i am currently completing regression analysis as part of my dissertation, looking at the effects…
generate Table with Percentiles, Panel DataHello, I am working with a panel data set containing 550 district variables over 6 years. One obser…
Subscribe to:
Post Comments (Atom)
0 Response to extracting a period of time
Post a Comment