Hello,
I am working with NHANES data and have been merging datasets together using a 1:1 merge with a unique identifier "seqn." Each survey respondent is assigned a different sequence number (seqn) which makes it easy to merge the different datasets. This was all going well, but one of the datasets I want to merge (on prescription drug data) with the others contains multiple entries for each "seqn" so that it is not a unique identifier. In other words, if a person were taking multiple prescription drugs there would be multiple data entries that correspond to the same sequence number. I am trying to figure out a way to reorganize the data so that there is a single sequence number that corresponds to each drug a person is taking. Please let me know how best I can do this. I am new to stata.
Related Posts with Modifying a dataset to facilitate merging
Re: FitstatHello! I ran the logistic regression. The command fitstat produced some statistics on the model fit…
Advice regarding Stata NetCourseHello, Hope you all are well and safe. I am looking to expand my knowledge in visualization using …
Generating 500 AR(1) processesHello everyone, Just wanted to know how to generate 500 processes of the following model: Yt=alpha…
outreg2Hello, I could not produce excel table from outreg. My command is simple as follows # In MS excel …
Is it usual for ivprobit per se to run quickly but margins after that is very slow?ivprobit finished in may a few minutes. But I am waiting for hours for margins to finish. Is this no…
Subscribe to:
Post Comments (Atom)
0 Response to Modifying a dataset to facilitate merging
Post a Comment