[R] Linear Trend Analysis?

Chris Bergstresser chris at subtlety.com
Wed Jan 26 19:54:11 CET 2005


Hi all --

   I'm trying to use R for my "Analysis of Categorical Data" class, but I
can't figure out how to do a weighted linear trend analysis.  I have a table
of categorical data, to which I've assigned weights to the rows and columns.
I need to calculate r and M^2, which is apparently done in SAS using "PROC
FREQ" and in STATA using "correlate var1 var2 fw=count".  What's the command
for R?

-- Chris




More information about the R-help mailing list