[R] getting quotes out of matrix?

Jeff D. Hamann jeff_hamann at hamanndonald.com
Tue Feb 12 18:20:59 CET 2002


I've trying to check for model bias. It was recommended to me that I should
break the residuals into n groups and test to see if the mean is different
from zero. What is the best way to generate the groups. I've generated a
matrix that contains the residuals and groups, but the values all have
quotes around them.

1) how do I get rid of the quotes?
2) is this an acceptable method for testing for model bias?

# this is the test code...
signif <- symnum(fit3sls[[2]]$residuals,
  corr = FALSE,
  na = FALSE,
  cutpoints = c(-5,.1,.2,.3,.4, 5),
  symbols   =  c("A","B","C","D","E"))

table <- cbind( fit3sls[[2]]$residuals, signif )
colnames(table) <- c("resid","group")

# prints fine
print.matrix(table, quote = FALSE, right = TRUE )

#    resid_table <- matrix(table,quote=FALSE )
# just to look at the data
#boxplot( resid ~ group, data = resid_table )



Thanks,
Jeff.



Jeff D. Hamann
Hamann, Donald & Associates, Inc.
PO Box 1421
Corvallis, Oregon USA 97339-1421
Bus. 541-753-7333
Cell. 541-740-5988
jeff_hamann at hamanndonald.com
www.hamanndonald.com


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list