Hi, I am looking at a study involving student performance and gender.
Students are observed taking courses over time. Each course has a particular component to it (e.g. 50% assignment, 50% exam). Thus, in terms of notation we can write the observations as ijk, where i refers to the individual, j refers to the course, and k refers to the component. Fixed effects analysis has already been conducted (at different levels).
I am trying to create a new variable, treatment, that is 1 if the course (j) does not have a particular component in 2020, and 0 otherwise.
However, because the data is listed at the component (k) level, I am having trouble doing so. In other words, I am trying to create a variable at the j level, which is dependent on changes (across time) at the k level.
Any idea how I can go about doing so?
Thank you so much!
Related Posts with Using egen to create new treatment variable
SVAR estimation with growth and inflation - Impulse responsesHello I am estimating an SVAR model with growth, taken as the first difference of log(GDP) and infl…
How to model persistence using survival analysis techniquesDear members, I am trying to model persistence in exporting on a sample of new firms using survival…
marginsplot mlabel format valuesDear Statalister, my first post, so forgive me if I get something wrong. My problem is this. By usin…
Inquire about "regress is"This is a question from Wooldridge textbook. Using just the years 1990 and 1993, estimate the …
variance ratio test resultArray Hi.I did the variance ratio test after two samples using groups t test and the result is as se…
Subscribe to:
Post Comments (Atom)
0 Response to Using egen to create new treatment variable
Post a Comment