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
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
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
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 -
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
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
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
?
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
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
9 matches
Mail list logo