I have 3 x blood pressure values per participant. I can take an average like below, which ignores missing values (good):
Code:
egen SBPavg=rmean(BPSys1 BPSys2 BPSys3)
Thanks,
Patrick
Specialized on Data processing, Data management Implementation plan, Data Collection tools - electronic and paper base, Data cleaning specifications, Data extraction, Data transformation, Data load, Analytical Datasets, and Data analysis. BJ Data Tech Solutions teaches on design and developing Electronic Data Collection Tools using CSPro, and STATA commands for data manipulation. Setting up Data Management systems using modern data technologies such as Relational Databases, C#, PHP and Android.
egen SBPavg=rmean(BPSys1 BPSys2 BPSys3)
0 Response to Generating an average of 3 x variables with a rule that at least 2 need to not be missing
Post a Comment