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
How to convert back from levelsofI have a variable which has type int but each int is corresponding to a word that is meaningful, and…
Converting data structure to a panel data structureHi all, I am trying to analyze a panel dataset. The data has three years of observations (2016, 2018…
Human opportunity indexHuman opportunity index Hi, I am trying to apply below mentioned HOI syntax on education data to ch…
Dichotomous Logistic ModelHi there Would be grateful for advice on how to fit and predict my model that has two outcomes: 1 co…
Expression for something to not be in a listSuppose I have a local macro which is a list of values; let us call it "values". Then suppose that I…
Subscribe to:
Post Comments (Atom)
0 Response to Using egen to create new treatment variable
Post a Comment