[R] Newbie: Translating GLM SAS code into R

2005-11-29 Thread Peyuco Porras Porras .
Dear all; I'm looking for some help in translating the following SAS code to R. The code represents a factorial design plus 1 control plot (2 x 2 + 1). The data is the following BLOCK FA FB FC Y 1 0 0 0 15.33 1 1 0 0 14.4

[R] Model parameterization / Factor Levels

2005-10-12 Thread Peyuco Porras Porras .
Dear R users; I'm looking for some hint about how to deal with the following situation: Response = Y Factor A = levels: 0, 1 Factor B = levels: 0, 1 Factor C = levels: 1,2,3,4 Model: Logistic 3-parms. where th1~1+A+C, th2~1+C; th3~1 For 'simplicity' (for me) I'm using the SAS contrast p

[R] formatting output

2005-02-28 Thread Peyuco Porras Porras .
Dear R-users A basic question that I wasn't able to solve: Is it possible to get the results of the function 'quantile' expressed as data.frame? What I'm doing is to apply the following code to get the quantiles in a particular dataset: tmp<-tapply(data$DEN,list(Age=da

[R] calibration/validation sets

2004-08-14 Thread Peyuco Porras Porras .
Hi; Does anyone know how to create a calibration and validation set from a particular dataset? I have a dataframe with nearly 20,000 rows! and I would like to select (randomly) a subset from the original dataset (...I found how to do that) to use as calibration set. However, I don't know how to

[R] Proportions - basic question

2004-06-24 Thread Peyuco Porras Porras .
Hi, How can I get descriptive statitics (mean, se, etc) for a variable expressed in percentage? (like summary() for a continous var) Can I tell R to do that? Thank you PP __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r