Hi All,
I'm trying to perform a survey data analysis, but these data came in 35 different stata files. Problem is that I only need a few variables from each file.
I've tried merging, but it wasn't meaningful since the variables are different in different files, so, I was left with empty cells after merging.
Please, how can I successfully extract the specific variables (up to 12 variables from 8 different files) I need for my analysis without losing the survey's core characteristics (I learnt that for a survey analysis to produce reliable variance estimates, that the full sample size should be used for analysis.
Below are the examples of the two stata file and two of the variables I'd like to extract from each for use in a single analysis. For instance, college graduates are likely to be more informed to take care of their health, such that their chances of being physically disabled are limited.
Thank you for your time.
sect2_education.dta
What is the highest educational level [NAME] completed?
sect3_health.dta
Did [NAME] have to stop his/her usual activities because of this [ILLNESS/INJURY
Related Posts with Extracting and using variables from different stata files of the same survey dataset
Combine cases, but keep values from each.I'd like to combine cases, but in an unusual way -- by keeping values from each. For example, start …
Minutes off in datetime formattingHello, I am working on a load profile with 30-minute invervals of electricity demand that I wish to…
Reverse coefficients after regression on ihs transformed netwealthDear Stata Forum, I am doing regressions with dependent var netwealth transformed with the hyperbol…
Creating a binary varible from a date variableI would like to create a variable where there is only two variables (0=heating, 1=non-heating) I ha…
How to execute a Matlab script from StataHi all, I'd like to run a Matlab script from within my Stata Do-File. Haven't done this before, but…
Subscribe to:
Post Comments (Atom)
0 Response to Extracting and using variables from different stata files of the same survey dataset
Post a Comment