[R] contrast {Design} question

From: Greg Tarpinian <sasprog474_at_yahoo.com>
Date: Sat 06 Aug 2005 - 02:52:48 EST


All,

I have been trying to get the following code to work:

A.quantiles <- quantile(foo.frame$A,
probs = seq(from = 0.05, to = 0.95, by = 0.05)) base.quantiles <- quantile(Efficacy205$BASELINE_RANK, probs = seq(from = 0.05, to = 0.95, by = 0.05)) gender <- levels(Efficacy205$GENDER)
contrast.1
 <- contrast(Model.1,

             list(TPCODE= 'A', 
                  AGE = age.quantiles, 
		  BASELINE_RANK = base.quantiles,
                  GENDER = gender),
	     list(TPCODE = 'D', 
                  AGE = age.quantiles, 
		  BASELINE_RANK = base.quantiles,
                  GENDER = gender),
	     type = 'average', 
             weights = table(gender))

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Aug 06 03:04:37 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:06:26 EST