Hello, i am having trouble figuring out how to pull out a specific variable to run my scatterplot for. I have to run the code for the entire data set, and then two variables. Do I need to use a weighted statement or a freq statement? i've used both but i'm not sure if i'm on the right track. This is the code i used for my original data set: proc corr data=dmft plots=(scatter); Var industrial sugar dmft; Title 'correlation of sugar and decaying teeth in industrial and nonindustrial countries'; run; I then need to run the code specifically for the industrial variable and nonindustrial variable but they are put in the code as if industrial=2 then industrial=0. is there a link to more information on this somewhere?
... View more