I found a few old posts on StackOverflow that brought up the same
problem with partialPlot. Apparently the function refers to the global
env when looking for x.var, and if it's running within a function, there
is no global value for that parameter.
The work around was simple: put the partialPl
—
Sent from my Outlook for Android
https://aka.ms/ghei36
*From:* Micha Silver
*Sent:* Sunday, September 2, 2018 11:54:44 AM
*To:* Amit Mittal
*Cc:* R-help
*Subject:* Re: [R] partialPlot within a function
On 09/02/2018
I am running randomForest regressions in a loop, passing a different
data.frame each time, and trying to plot importance and partial
dependency plots for all variables in the data.frame. The commands all
run OK when typed at the prompt, but when I wrap them into a function,
the partialPlot func
3 matches
Mail list logo