Displaying 20 results from an estimated 20000 matches similar to: "Help with R"
2011 Jul 29
3
help with plot.rpart
? data=read.table("http://statcourse.com/research/boston.csv", , sep=",",
header = TRUE)
? library(rpart)
? fit=rpart (MV~ CRIM+ZN+INDUS+CHAS+NOX+RM+AGE+DIS+RAD+TAX+ PT+B+LSTAT)
Please: Show me the tree.
Mark
-------- Original Message --------
Subject: Re: [R] help with rpart
From: "Stephen Milborrow" <[1]milbo at sonic.net>
2011 Jul 29
1
help with predict.rpart
? data=read.table("http://statcourse.com/research/boston.csv", ,
sep=",", header = TRUE)
? library(rpart)
? fit=rpart (MV~ CRIM+ZN+INDUS+CHAS+NOX+RM+AGE+DIS+RAD+TAX+
PT+B+LSTAT)
predict(fit,data[4,])
plot only reveals part of the tree in contrast to the results on obtains
with CART or C5
-------- Original Message --------
Subject: Re: [R] help with rpart
From: Sarah
2011 Jul 28
2
help with rpart
1. How can I plot the entire tree produced by rpart?
2. How can I submit a vector of values to a tree produced by rpart and
have
it make an assignment?
Mark
2009 May 07
2
A potential bug for paste() ?
Hi, everyone,
Try the following command to see if you get TRUE or FALSE. I get FALSE on a
unix platform but TRUE on Windows. Any comment?
all(paste(Theoph[1],Theoph[2])==paste(Theoph[[1]],Theoph[[2]]))
--
Jun Shen PhD
PK/PD Scientist
BioPharma Services
Millipore Corporation
15 Research Park Dr.
St Charles, MO 63304
Direct: 636-720-1589
[[alternative HTML version deleted]]
2009 Oct 21
2
squared euclidean distance
Dear R-Help-Team,
I would like to cluster my data using the ward-method. In several papers I
read (e.g. Bahrenberg) that it is neccesary to use the "squared euclidean
distance" with the ward-method. Unfortunatelly I cannot find this term in r
as a method for measuring the distance.
Does anybody have an idea?
Thanks in advance,
Carolin
[[alternative HTML version deleted]]
2007 Dec 10
1
Multiple Reponse CART Analysis
Dear R friends-
I'm attempting to generate a regression tree with one gradient predictor and multiple responses, trying to test if change in size (turtle.data$Clength) acts as a single predictor of ten multiple diet taxa abundances (prey.data) Neither rpart or mvpart seem to allow me to do multiple responses. (Or if they can, I'm not using the functions properly.)
> library(rpart)
2008 Jan 09
2
Two dependent variables in formula
Hello,
I' m trying to change the formula in the rpart function. The
format of a general formula is Answer ~ expression, where Answer is
the dependent variable and expression is set of terms containing the
independent variables and separated by operators. I want the response
of the formula is more than one dependent variable. It is possible?
2010 Feb 26
2
Error in mvpart example
Dear all,
I'm getting an error in one of the stock examples in the 'mvpart' package. I tried:
require(mvpart)
data(spider)
fit3 <- rpart(gdist(spider[,1:12],meth="bray",full=TRUE,sq=TRUE)~water+twigs+reft+herbs+moss+sand,spider,method="dist") #directly from ?rpart
summary(fit3)
...which returned the following:
Error in apply(formatg(yval, digits - 3), 1,
2010 Aug 26
1
Decision tree and factor variables
Hello,
I'm building a decision tree in R with the rpart package. Modeling is
fine. But when it comes to scoring, I have the following issue:
factor 'cust_language' has new level(s) OT
I think this comes from the fact that when learning, the DT doesn't
see all the possible value of the factor variable cust_language. When
scoring, new values comes and I get this error. However, it
2006 Nov 16
2
question about capscale (vegan)
Hello,
I am interested in using the capscale function of vegan package of R. I
already have a dissimilarity matrix and I am intended to use it as
'distance' argument. But then, I don't know what kind of data must be in
'comm' argument. I don't understand what type of data must be referred
as 'species scores' and 'community data frame' since my data refer to
2008 Nov 18
2
matrix for diversity functions?
Hi,
I have a small simple data frame (attached) - to compare diversity of
insects encountered in disturbed and unditurbed site. What i have is
the count of insects - the total number of times they were encountered
over 30 monitoring slots.
Can someone please check for me to make sure how the 'community data
matrix' for the diversity function needs to be oriented so that i'm
2010 Jan 19
5
OT: Software for specific visualisation of data...ideas?
Dear List,
A student in the Department where I work would like to produce a graphic
similar to this one:
http://image.guardian.co.uk/sys-files/Guardian/documents/2009/09/16/Public_spending_160909.pdf
Does anyone know if the figure in the pdf can be generated in a specific
software application for example? Any suggestions would be most
gratefully received by the student concerned.
Many thanks,
2010 Aug 13
3
Delete rpart/mvpart cross-validation output
Dear all,
I was wondering if there is a simple way to avoid printing the multiple
cross-validation automatic output to the console of recursive partitionning
functions like rpart or mvpart. For example...
> data(spider)
>
mvpart(data.matrix(spider[,1:12])~herbs+reft+moss+sand+twigs+water,spider,xv="1se",xvmult=100)
*X-Val rep : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
2008 Feb 20
3
Specaccum
Se ha borrado un texto insertado con un juego de caracteres sin especificar...
Nombre: no disponible
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20080220/4ba85b57/attachment.pl
2008 Feb 29
1
controlling for number of elements in each node of the tree in mvpart
Still about the mvpart.
Is there any way I can control for the number of elements in each node
in the function mvpart? Specifically, how can I ask partition to
ignore node with elements less than 10?
Thanks!
-Shu
2011 Mar 18
3
exploring dist()
Hello, everybody,
I hope somebody could help me with a dist() function.
I have a data frame of size 2*4087 (col*row), where col corresponds to the
treatment and rows are
species, values are Hellinger distances, I should reconstruct a distance
matrix
with a dist() function. I know that "euclidean" method should be used.
When I type:
dist(dframe,"euclidean")
it gives me a
2011 Jul 06
1
relative euclidean distance
Hi,
I would like to calculate the RELATIVE euclidean distance. Is there a
function in R which does it ?
(I calculated the abundance of 94 chemical compounds in secretion of
several individuals, and I would like to have the chemical distance
between 2 individuals as expressed by the relative euclidean distance.
Some compounds are in very low abundance whereas others are in high
abundance,
2012 Dec 29
2
Error in plot.envfit(ef, p.max = 0.1) : (subscript) logical subscript too long
Hello there,
I'm trying to plot vectors with p<0.1 in a NMDS ordination plot using p.max. Below the scripts I'm using. I guess I'm missing something! could you please give me a hand?
species<-metaMDS(species_matrix)ef<-envfit(species,environmentaldata_file,permu=999,na.rm=TRUE)efplot(species, dis="sites")plot(ef,p.max=0.1)
Error in plot.envfit(ef, p.max = 0.1) :
2010 Sep 07
1
Multivariate Regression Trees: how to identify sample units?
Dear friends,
I am sudying the mvpart package, that implements Multivariate
Regression Trees, aiming at applying it to a biogeographical dataset of
tree speces in southern South America.
My doubt is how to access plot identities after the tree is produced.
For us it is rather important, but I could not find them with neither
'summary(fit)'[where fit is the object containing the
2009 Mar 23
1
mvpart error
Hello all,
When attempting a classification tree using mvpart, I get the following
error:
> thesis2.mvp=mvpart(bat_sp~., data=alltrees.df)
Error in all(keep) :
unused argument(s) (c(TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE,
TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE,
TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE,
TRUE, TRUE, TRUE,