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
Logit model convergence not achieved when adding non-linearitiesHi, I am working a logit model with a binary dependent variable. Some of the independent variables …
Custom one-tailed confidence intervals for coefplotI'm using the community-contributed command from SSC coefplot. The command is described here: http:…
Weighted Sum in CollapseHi, I am working with firm-level data (cross-section data). I am trying to calculate the weighted s…
Bar graph troubleArray Code: graph bar (percent), by(year) over(wbsat) over(white) title(SWB) I am trying to make …
Interpretation of interaction with time in FE modelDear all, Would you help me to interpret the following models? This is 5 waves data with time-vary…
Subscribe to:
Post Comments (Atom)
0 Response to Merging one of the rows with another within multiple rows of observation
Post a Comment