[R] colldiag

2005-04-21 Thread vasilis pappas
Hello, could anyone explain what am I doing wrong. When I use colldiag function from package perturb I get different Variance Decomposition Proportions matrix in R than in SAS, although the eigenvalues and indexes are the same. Thanks for your attention. Results: in R: eigen(cor(indep2))

[R] step error

2005-04-01 Thread vasilis pappas
Could anyone tell me what am I doing wrong? pro-function(indep,dep){ + d-data.frame(indep) + form-formula(lm(dep~.,data=d)) + forward-step(lm(dep~X1,data=d),scope=form,trace=0,direction='f') + return(forward) + } pro(m,q) Error in inherits(x, data.frame) : Object d not found Where q is a

[R] Step error

2005-03-30 Thread vasilis pappas
Could anyone tell me what am I doing wrong? pro-function(indep,dep){ + d-data.frame(indep) + form-formula(lm(dep~.,data=d)) + forward-step(lm(dep~X1,data=d),scope=form,trace=0,direction='f') + return(forward) + } pro(m,q) Error in inherits(x, data.frame) : Object d not found Where q is a

[R] 3 questions

2004-12-16 Thread vasilis pappas
Hello R users, I have three questions and I would be grateful if someone could give me an answer to each of these. 1) I have constracted a function that returns an output, which runs in a while( condition ){ run function } loop. I would like to know if there is a way to get the outputs

[R] Different results

2004-05-27 Thread vasilis pappas
Hello everybody, I've been practicing with some data in R and SPSS and I noticed that there are some differences in ANOVA results. For example with : y-c(1,2,34,2,3,45,2,1,67,3,2,67,2,2,98,4,4,23,1,1,23,2,3,45) and x-rep(c(1,2,3),8) I get in R ( with summary(aov(y~x)) ) MSres=350.7

[R] about power of tests

2004-01-19 Thread vasilis pappas
Does anyone know how can I calculate power in wilcoxon.test, kruskal. test and oneway.test in an F? I have already found power.t.test for calculating power in t.test but it seems that there is nothing for the others. Any answer could be useful. Thanks for your interest.

[R] Questions in R

2003-11-03 Thread vasilis pappas
Hello, I have 4 questions in R and I am looking for 4 answers! the questions are the below: 1) is there a function in R for the Least Significant Difference method for multiple comparisons? 2) Is there a function in R that gives me the studentized deleted residuals and the leverage points? 3) is

[R] contigency tables

2003-10-13 Thread vasilis pappas
Hello everybody, Can anyone tell me how I could analyze data that are at a contigency table form? I already found function cfa in the cfa package but I still don't understand how I could use this function in order to elaborate a contigency table. Every answer is welcome!

[R] greek problem

2003-07-15 Thread vasilis pappas
Hello everybody.I have a problem with R.At the print or similar commands, I am writing at greek but R Gui doesn't understant much of the it! Perhaps if I could change the font to a compatible with the greek's one, the problem would be solved.Although I don't know how I could change font.I would