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
Help summing data for men and womenHi, I have data on the number of people of each age in each local authority. The problem at the mome…
equality-of-distributions testHow can I perform Kolmogorov-Smirnov-Lilliefors test of normality test? I know that "ksmirnov'" comm…
InterpretationI have the below model, how should I interpret B6: There is a decrease in children by 0.21(It does n…
help with string variable comprising multiple linesHi Statalist, After importing from Excel (-import excel-; .xlsx), I have some string variable value…
Download STATA 15 SE 64 Bit Full VersionDownload STATA 15 SE 64 Bit Full Version …
Subscribe to:
Post Comments (Atom)
0 Response to Merging one of the rows with another within multiple rows of observation
Post a Comment