Hi everyone,
I am currently struggling with something that I think is easy but i really couldn't figure out. I tried to explore all the possibilities in data manager but nothing worked.
I am using a dataset that contains a variable called refrencespouse (each person if has a spouse have a number). I am interested in the values of this variable and i want to use all of them in a egen command.
Meaning
egen example=anymatch(referencespouse), values(22 33 44 55 ...all observations)
I have tried to copy and paste all the observation but when I paste all this value are vertical and does not run in Stata. I have also tried to copy in Excel, transpose and then paste in Stata but all the observation are put together as a unique number.
I hope that my explanation is not too confusing, I can provide a screenshot if it is useful.
Thank everyone that has an idea,
Cereghetti Jean
Related Posts with use observation as a varlist
osample command teffects IPWRAI am using IPWRA and have tried to use osample to identify the overlap violation but am getting a co…
Combining observations under specific conditionsDear stata-users, I'm trying to combine observations under some conditions. Specifically, I have di…
Unable to reshape multiply imputed dataHello, I am unable to reshape my data into long format to run a fixed effects model. As can be seen…
Generating a new numeric variable that gives the proportion of a value count and the total count of anotherHello Statalist, I'm working with an integer variable "ind" (for industry) and a 0-1 binary float v…
Exporting of Stata Graphs as .pngI am using Stata/IC 14.2 for Windows (64-bit). I am also using Windows 10 I have a long .do file whe…
Subscribe to:
Post Comments (Atom)
0 Response to use observation as a varlist
Post a Comment