Thanks ... my actual goal is to identify confounder variables in my dataset governing the relationship between Job Satisfaction (Y outcome, Ordinal, Likert 1 - 5) and WorkRespect (X Predictor, Ordinal, Likert 1 - 4). The characteristics of a confounder C are: 1) Y and C are statistically related (p <0.05) 2) X and C are statistically related (p <0.05) 3) C cannot be in the path between X and Y, otherwise it becomes a mediator. C (my dataset) is mostly ordinal and nominal, but binary and continuous variables exist. I am trying identifying variables in my dataset that meet the first two criteria, hence the original goal for this post. Used SPSS, as I said earlier on a smaller set, then ported the files over into excel and did some painful excel math logic, which I wanted to avoid now, on this much larger dataset. BTW, I compared Spearman and Kendall results form the first two criteria and they were within 10% of each each. Both gave the same number of variables that meet criteria #1 and #2. How to determine the 3rd criteria is currently mystery to me now, beyond just drawing Directed Acyclic Graphs (DAGs) and using "strategic common sense" as a colleague told me, to determine whether C truly comes before X or simply does not belong. Literature searches so far have not been that helpful. Anyways, to preventing bloating this thread any further, I wanted to concentrate on SAS code that helps meet first two criteria. Hope this makes sense and my apologies for any confusion on my part.
... View more