Hi all,
I am trying to plot the results of a discriminant analysis done with
lda(MASS) but my groups appear in two different plots (in the same graphics
device) and I want to combine them in one plot. My code looks like:
BirdTrain.lda - lda(Bdisperser~., data=BirdTrain.mx)
predict(BirdTrain.lda)
is not reproducible): I would
expect you to get a single plot with two panels (figures), but there are
options to have a single panel. (Reading 'An Introduction to R' may help
you to use standard terminology that others will be able to follow.)
On Wed, 22 Aug 2007, Silvia Lomascolo wrote:
Hi all
I work with Windows, R version 2.4.1
I am trying to plot the results of a discriminant analysis done using the
lda function in the MASS library. The discriminant. analysis goes like this:
data.tb-read.table('C:\\Documents and
Settings\\silvia\\Desktop\\dicrim_test.txt', header=T) ## the actual
I use Widows, R version 2.4.1
I have 4 questions on lda (MASS) (code is pasted below):
1st. How can I obtain the statistics and p-value associated with
discriminant analysis? Am I supposed to calculate that manually by squaring
the svd value and looking the p value up in a table? I am writing
I work with Windows, R version 2.4.1
I'm trying to do a discriminant analysis and, in trying to figure out how to
do it following the example from R help, I'm getting an error that says
'subscript out of bounds'. I don't know what this means and how to solve it
(I'm very new with R)
I'm doing
I use Windows, R version 2.4.1.
I have a dataset in which columns 1-3 are replicates, 4-6, are replicates,
etc. I need to calculate an average for every set of replicates (columns
1-3, 4-6, 7-9, etc.) AND each set of replicates should be averaged every 14
rows (for more detail, to measure fruit
=rep(1:(nrow(means)/14), each=14)), mean)
Or something...
YES! This seems to work. Thank you!
-Original Message-
From: [EMAIL PROTECTED] on behalf of Silvia Lomascolo
Sent: Thu 07/06/2007 8:26 PM
To: r-help@stat.math.ethz.ch
Subject: [R] Averaging across rows columns
I use
I work on Windows, R version 2.4.1. I'm very new with R!
I am trying to build a classification tree using rpart but, although the
matrix has 108 variables, the program builds a tree with only one split
using one variable! I know it is probable that only one variable is
informative, but I think
I work on Windows, R version 2.4.1
I need to leave out many rows and columns when reading a matrix. The 'skip'
commands in read.table, seem to be just for skipping rows, if I understand
well, but I need to skip many columns as well. I tried something very simple
and left one row and one column
yes, this works. It didn't think of concatenating... thanks!
jim holtman wrote:
zzz - zzz[-c(1,45,23,321), -c(23,34,45,67)]
On 5/8/07, Silvia Lomascolo [EMAIL PROTECTED] wrote:
I work on Windows, R version 2.4.1
I need to leave out many rows and columns when reading a matrix
)= chr euclidean
..- attr(*, call)= language dist(x = PeaksMatrix, method = euclidean,
diag = FALSE, upper = FALSE, p = 2)
Any more suggestions, please?
Silvia Lomascolo wrote:
I work with Windows and use R version 2.4.1. I am JUST starting to learn
this program...
I get this warning
11 matches
Mail list logo