Hello
I have a dataset in which each identifier (ID) has multiple rows of observations, ranging from 2 to 15.
I have a variable (main), the answer to which determines whether or not the row will be considered in all analysis (1 means "Yes"). This could be 1 or multiple rows per ID.
I have one row of observation per ID, which has answers to variables different from the rest. I want to merge this row of observation with row(s) which has "Yes" for the variable main.
I don´t seem to get any command work for that so far. I would appreciate any help. Let me know if further clarification is required.
Thank you.
Related Posts with Merging one of the rows with another within multiple rows of observation
heteroskedasticity in dynamic panelI am working on a Dynamic Panel Model in Stata, i tested for the serial correlation and the heterosk…
"invalid name" when presenting p<0.001 instead of p=0.000Dear All, I calculated p-value after using sts test, and I intended to acquire p<0.001 when calcu…
Westfall-Young correction for multiple hypothesis testing, with factor variablesI am implementing the Westfall-Young (1993) free step-down resampling methodology to correct for mul…
Creating a new dummy based on 4 conditionsHello everyone! We are stuck with a problem creating a new dummy variable from a data with many dum…
dissolve in shp fileHi, I study on spatial econometrics. I need NUTS-I level shp file for Turkey. I have also NUTS-II a…
Subscribe to:
Post Comments (Atom)
0 Response to Merging one of the rows with another within multiple rows of observation
Post a Comment