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
multiple logit odds ratioHello, I was trying to calculate odds ration in an example for myself, and first I had no problem w…
Documentation for non existent functionI was learning string functions in Stata. After obtaining help using help string functions command, …
Creating and storing residuals in a loopHi all I am trying to run the following code. The purpose is to capture industry and year wise resi…
System GMM and AB test for AR(2)Hi All: I am using system GMM method to estimate my panel data (T=6). I am new to this method. I kn…
How to declare weekly data as time series data in Stata 15Dear All I want to use time series data on a weekly basis. When I try, I get the error "repeated tim…
Subscribe to:
Post Comments (Atom)
0 Response to use observation as a varlist
Post a Comment