python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Creating Dummy Variable for Two Events in Dataset and Restricting Regression by Time Period in Stata
I am testing effect to two events in a dataset with a time dummy variable (post). For instance, my first event is in 1999 so I want to post-period after 1999 to 2003. Similarly, my second event is in ...
Farhanhasnat
Votes: 0
Answers: 1
Stata equivalent of SQL's 'over(partition by id)
I'm a SQL and R user who is just starting to use Stata. I'm trying to find an equivalent Stata program/code of doing the following in SQL:
SQL code:
MAX(VAR_A) OVER(PARTITION BY ID) AS MAX_VAR_A
I ha...
Prajwal Mani Pradhan
Votes: 0
Answers: 0
Matching observations based on a single variable or multiple variables on a single data set - stata
I need to match observations based on an index variable that measures home conditions, personal variables such as age, gender, education, etc. and year. My home index variable is numerical (from 0 to ...
Daniela Parada
Votes: 0
Answers: 1