search for: fgrp

Displaying 2 results from an estimated 2 matches for "fgrp".

Did you mean: fgrep
2003 Jan 20
0
quadratic trends and changes in slopes (R-help digest, Vol 1 #52 - 16 msgs)
...d the data as follows: example<-read.table("example.txt", header = FALSE, col.names=c('y','grp','o1','o2','o3')) example # Make variable names available to session attach(example) # Convert grp from numeric format to factor format for ANOVA fgrp<-factor(grp) fgrp # Conduct ANOVA on grp GRP<-lm(y~fgrp) anova(GRP) # Conduct ANOVA on contrasts Contrasts<-lm(y~o1+o2+o3) anova(Contrasts) # I'm sure that an R veteran would have some slick way to do the 'Nonlinear' # contrast but I used a pocket calculator to verify that...
2003 Jan 21
1
(v2) quadratic trends and changes in slopes (R-help digest, Vol 1 #52 - 16 msgs)
...ol.names=c('y','grp','o1','o2','o3')) example # Make variable names available to session attach(example) # Convert grp from numeric format to factor format for ANOVA. If you don't # do this then you get the wrong test (with only 1 degree of freedom). fgrp<-factor(grp) fgrp # Conduct ANOVA on grp GRP<-lm(y~fgrp) anova(GRP) # Conduct ANOVA on contrasts ## The example aready contains the contrast vectors but you'll have to ## create them yourself when you use real data. A quick and accurate way to ## set them up is to use the repeat comm...