Re: [R] Problem Creating Partial Dependence Plot

2014-05-30 Thread Stephen Milborrow
Jane Shevtsov wrote: I am trying to use the plotmo package to generate a partial dependence plot for a CART model created with rpart. When running plotmo, I get Error: get.plotmo.y returned the wrong length (got 204938 expected 205000). The rpart predict function does indeed return 204938

Re: [R] Problem Creating Partial Dependence Plot

2014-05-28 Thread Jane Shevtsov
Hi Jean, I did use a formula and a data frame in creating the rpart model, and the variable names are quite simple. And rpart is definitely supported. Best, Jane On Tue, May 27, 2014 at 5:44 AM, Adams, Jean jvad...@usgs.gov wrote: Jane, Page 9 of the reference manual,

Re: [R] Problem Creating Partial Dependence Plot

2014-05-27 Thread Adams, Jean
Jane, Page 9 of the reference manual, http://cran.r-project.org/web/packages/plotmo/plotmo.pdf, discusses this error. 'The work-around is to simplify or standardize the way the model function is called. Use a formula and a data frame, or at least explicitly name the variables rather than passing

[R] Problem Creating Partial Dependence Plot

2014-05-26 Thread Jane Shevtsov
I am trying to use the plotmo package to generate a partial dependence plot for a CART model created with rpart. When running plotmo, I get Error: get.plotmo.y returned the wrong length (got 204938 expected 205000). The rpart predict function does indeed return 204938 results, but plotmo is