Hi all,
I would like to know how to subtract some observation from one variable.
Some of them are linked to a dummy variable which is equal to 1 and I need to subtract them with the other variables (whose dummy variables are equal to 0).
How can I do this?
Thanks for the help.
Related Posts with stata question
Is it possible that log mis-calculates it or create weird ".b" when the workload is too heavy?I use Stata 17 (24 cores). I am sorry that I cannot provide the reproducible example because this p…
Is it possible that log mis-calculates it or create weird ".b" when the workload is too heavy?I use Stata 17 (24 cores). I am sorry that I cannot provide the reproducible example because this p…
Extracting All Strings After a Word within a Variable NameI have a dataset representing a treated unit (GDP), a series of estimated counterfactuals, (cf) and …
Assigning value from one variable to another if condition is metI have a data manipulation question: I have a dataset with the variables "id_1", "year", and "id_2."…
Renaming Matrix Rows With SpacesSuppose I wish to rename the rows of a matrix. Code: clear * cls matrix A = (2,1\3,2) cls loc rn …
Subscribe to:
Post Comments (Atom)
0 Response to stata question
Post a Comment