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
Compare two coefficients in two different regressionsDear all: I would like to compare the coefficients generated by two different regressions (in two s…
Presence of Heteroskedasticity, Autocorrelation and Cross-sectional Dependence/Contemporaneous Correlation - Panel DataI have a quarterly balanced panel data with 8 independent variables from 2000q1:2012:q2 (n=20 and T=…
Loop/Local Macro Not WorkingHello, Recently I've been having a lot of trouble with local macros, especially when using them for…
Convert Variable Values to Separate VariableHello, I am part of a research team analyzing survey data regarding attitudes towards a specific he…
Robust standard errors with alternative applicationDear all, I wonder if anyone knows about an application or user written program that can be used to …
Subscribe to:
Post Comments (Atom)
0 Response to Using egen to create new treatment variable
Post a Comment