Hi,
I am currently working with a database where I have about 200,000 obs.
Each observation belongs to a group identified by the variable "x_id". For each observation, I also know its status (belongs to the control or treatment group), and the date on which it took place.
Using the digdis package, I am currently using the following code to extract the MAD for obs. linked to the control group and at a specific date:
I get the following matrix:

My variable "x_id" takes values from 0 to 208. I would like to create a variable that would take the value displayed in the matrix for (i.e.) 12, which is 3.3590708, when the variable x_id==12, and so on...
Any idea that might help ?
I am currently working with a database where I have about 200,000 obs.
Each observation belongs to a group identified by the variable "x_id". For each observation, I also know its status (belongs to the control or treatment group), and the date on which it took place.
Using the digdis package, I am currently using the following code to extract the MAD for obs. linked to the control group and at a specific date:
Code:
digdis x if statut ==0 & date==0, position(1) by(x_id) matrix list r(mad)
My variable "x_id" takes values from 0 to 208. I would like to create a variable that would take the value displayed in the matrix for (i.e.) 12, which is 3.3590708, when the variable x_id==12, and so on...
Any idea that might help ?

Comment