Thanks for the info -- I'll check it out ASAP.

Regards

Glenn

+++++++++++++++++++++++++++++++++++++++
Glenn De'ath
Principal Research Scientist
Australian Institute of Marine Science
Ph: +61-7-4758-1747; +61-7-4753-4314

"In a world without walls and fences, who needs windows and gates."

+++++++++++++++++++++++++++++++++++++++++




-----Original Message-----
From: Gavin Simpson [mailto:gavin.simpson@ucl.ac.uk]
Sent: Sat 27-Feb-10 8:43 PM
To: Wearn, Oliver
Cc: r-help@r-project.org; Glenn De'ath
Subject: Re: [R] Error in mvpart example
 
These functions (rpart, the mvpart wrapper, and summary.rpart) are
fairly complex doing many things.

For contributed packages you'd be best served by contacting the
author/maintainer. I've CC'd Glenn (the maintainer) here.

HTH

G

On Fri, 2010-02-26 at 13:55 +0000, Wearn, Oliver wrote:
> 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, paste, collapse = ",",
> sep = "") : 
>   dim(X) must have a positive length
> 
> This seems to be a problem with the cross-validation, since the
> "xerror" and "xstd" columns are missing from the summary table as
> well.
> 
> Using the mpart() wrapper results in the same error:
> 
> fit4<-mvpart(gdist(spider[,1:12],meth="bray",full=TRUE,sq=TRUE)~water
> +twigs+reft+herbs+moss+sand,spider,method="dist")
> summary(fit4)
> 
> Note, changing the 'method' argument to ="mrt" seems, superficially,
> to solve the problem. However, when the dependent variable is a
> dissimilarity matrix, shouldn't method="dist" be used (as per the
> examples)?
> 
> Thanks, in advance, for any help on this error.
> 
> Oliver
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%





--  
------------------------------------------------------------------------
The information contained in this communication is for t...{{dropped:12}}

