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
HelpDear Statalists, I am doing a model with fixed-effects and need some help. Would maybe any of you b…
Testing for serial correlation.Hey guys! I am running a fixed effects regression and wanted to test for serial correlation. I used …
Panel Data - Basic linear regression using large accounting datasetHi all, I am a beginner to Stata and from watching videos can get a grasp of basic OLS, probit mode…
Regression with grouped variablesDear Stata Community In my paper, I want to investigate the impact of import competition on the inc…
Interrupted time series analysis with differing effect on specific subgroupsHi, I would like to perform an interrupted-time-series analysis to assess the impact of a policy on…
Subscribe to:
Post Comments (Atom)
0 Response to Merging one of the rows with another within multiple rows of observation
Post a Comment