Possible Duplicate:
Weighted Pearson's Correlation?
I have imported data from SPSS file into R. Now I need to run correlations on weighted data. Data file name is wave1.
If I write cor(wave1)
it correlates all variables even weight variable and do not weight the data.
First, is it possible to weight data and then run analysis without including weight into it. For example correlation, linear model.
If it is not, how do I run correlation with weighted data in R?