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
Obtaining milliseconds from -now()-According to the documentation: tc = now() where tc: number of milliseconds from 01jan1960 00…
Using asdoc, acum to store values that I can write laterI am trying to use asdoc to create a table with the data I want. I first use: Code: sum XYZ if tin…
Using esttab to show both linear regression and logistic regression (odds ratio) outcomesHello, I'm trying to display 3 regression outcomes together by using Code: esttab command. Among t…
Inquiry about randomization (block size 4, 1:1 allocation)Hello, I'm conducting Stata command for randomization with the following details: Treatment group …
Show estimates for identical variables next to each other (e.g. via esttab)I have several models with (three-way) interactions terms, some of them are manually coded. I am sea…
Subscribe to:
Post Comments (Atom)
0 Response to extracting a period of time
Post a Comment