I am performing a principle component analysis with the between subject variable of fall status (non faller, single faller, recurrent faller) and within subject variable of sex to determine whether fall risk differs by fall status and sex. I would like to control for age and exposure to the exercise intervention in the principle component analysis, but I cannot find any code on how to go about doing this. The following pca code works, but does not control for covariates:
pca BMI_n OverallFallsRiskScore VisualContrast Proprio ReactionTime BestQuad_n EO_Firm_Sway_n EO_Foam_Sway_n Dual_TUG NIA_TotalScore GDS shortFES VAS FCI BarthelTotal_score IADL MMSE MOCA TrailA_n TrailB_n Stroop1_n Stroop2_n Stroop3_n DigitForward DigitBackward DSST_n VerbalFluency if NonSingleMultipleFaller > 1& Sex==0
This is a secondary analysis of RCT data.
Thanks for your help!
Related Posts with Can I control for covariates with a pca analysis?
Command for stratifying categorical variableDear, I want stratify my predictors (marital status, religion, education level, employment status fo…
Double sorted portfolio - Error EstimationI have to make a double sorted portfolio analysis. First I need to regress a simple linear model wit…
Bigger sample or omitted variable bias?I am testing whether financial access is correlated with the education of young individuals using a …
GlLAMM Mixed latent variableSorry I am using GLLAMM package and I would like to do a for cycle to find the best BIIC. I don't un…
How to add values in a forvalues loopHello, I would like to know how to add up values in a for loop. I am using DHS data, and using the c…
Subscribe to:
Post Comments (Atom)
0 Response to Can I control for covariates with a pca analysis?
Post a Comment