Re: [R] scatterplot to boxplot translation?

2011-12-09 Thread Tom Fletcher
You need to create some grouping for your cut points (0-100, etc). See ?cut Then, you can use boxplot and formula (y ~ NEWVARIABLE from cut) boxplot(y ~ cut(x)) There may be other ways to do this, but the above should work. TF -Original Message- From: r-help-boun...@r-project.org

Re: [R] annotate histogram

2011-11-01 Thread Tom Fletcher
See rug() and use col=2 to get red. So, as an example ... x - rchisq(100, df=2) hist(x) abline(v=median(x), lty=2) rug(x, col=2) TF -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Wendy Sent: Tuesday, November 01, 2011 10:22 AM

Re: [R] misclassification matrix

2010-10-06 Thread Tom Fletcher
I think what you are looking for is ?table and/or ?prop.table So, let's say you have two matrices: ACTUAL and CLASS, you can ... table(ACTUAL, CLASS) Or, diag(1-prop.table(table(ACTUAL, CLASS), 1)) to get row percentages and take the diagonal. So, using your example: # table() as above

Re: [R] does package QuantPsych function lm.beta can handle resultsof a regression with weights?

2010-07-26 Thread Tom Fletcher
The original function was created for a simple example. It never was written to address weighted regression. A quick fix will work for you situation. ### The original is: lm.beta - function (MOD) { b - summary(MOD)$coef[-1, 1] sx - sd(MOD$model[-1]) sy - sd(MOD$model[1]) beta -

Re: [R] The output of script is hidden in console

2010-01-05 Thread Tom Fletcher
There are probably numerous ways, but one is to add print() to the functions that you wish to display in the console. For example, in your source file, Instead of summary(x) try print(summary(x)) This should do the trick. Tom Fletcher -Original Message- From: r-help-boun...@r

Re: [R] Creating Dummy Variables in R

2009-12-16 Thread Tom Fletcher
the internal contrast functions. See ?contr.treatment Which is dummy coding by default. You can specify which group is the reference group. Alternatively, if you prefer effects coding, you can see ?contr.sum There are others as well. Tom Fletcher -Original Message- From: r-help

Re: [R] How to calculate the area under the curve

2009-10-22 Thread Tom Fletcher
See package ROCR. Then see ?performance; in the details, it describes a measure of auc. Tom Fletcher -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of olivier.abz Sent: Thursday, October 22, 2009 9:23 AM To: r-help@r-project.org

Re: [R] ltm package error for grm (IRT)

2009-10-15 Thread Tom Fletcher
? Tom Fletcher -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of ben kelcey Sent: Wednesday, October 14, 2009 4:32 PM To: r-help@r-project.org Subject: [R] ltm package error for grm (IRT) Using the grm function (graded response IRT model

Re: [R] trouble printing from graphics device in R 2.7.2

2008-09-17 Thread Tom Fletcher
Is there a setting change (or other minor fix) that can be done without an install of either the patched or development versions to address the printing issue described below. It is my understanding that these versions are 'source code' and not compiled for 'easy' installation. Thanks Tom