[R] Pearson residuals

2007-11-03 Thread Jorge Manuel de Almeida Magalhães
Dear Sirs What is the best aproximation to the standardized normal distribution: necessidade = c(sem necessidade,com necessidade) tipo =c(CE-1, CE-2, CE-3) dados=c(20,34,44,69,9,3) Tabela =cbind(expand.grid(list(Necessidade=necessidade, Tipo=tipo)), count=dados)

Re: [R] Pearson residuals

2007-11-03 Thread Jorge Manuel de Almeida Magalhães
Jorge Manuel de Almeida Magalhães wrote: Dear Sirs What is the best aproximation to the standardized normal distribution: How about http://www.statsci.org/s/qres.html (which gives S-PLUS code: haven't checked to see if it works in R or not, but it looks like it probably

Re: [R] grouping modalities

2007-10-15 Thread Jorge Manuel de Almeida Magalhães
Dear Sirs: Is there a way to group multiple responses in variables sets. SPSS have this feature: this is possible to group a set of variables by their common categories. I would like to do the same in R. Example: my.df = data.frame(var1=c(1,2,2,1,2,2,1,2), var2=c(2,2,1,1,2,2,1,1),

Re: [R] Variable characterization by the modalities of other variables

2007-10-07 Thread Jorge Manuel de Almeida Magalhães
__ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Abraços, Jorge Manuel de

[R] Variable characterization by the modalities of other variables

2007-10-05 Thread Jorge Manuel de Almeida Magalhães
Dear Sirs, Is there a way to make in R a variable modalities characterisation by the modalities of other categorical variables? Usually I do this task in SPAD. The output are: column 3 -- modality % in the class column 4 -- modality % in the population column 5 -- class % in the modality