[R] Need help finding max from 3d locfit output
Liaw, Andy
andy_liaw at merck.com
Tue Oct 26 21:50:41 CEST 2004
You can just do something like base[which.max(predict(fit)),].
One suggestion: Use something like locfit(log(Value) ~ lBrkOut + lExit,
data=base, ...). It's much safer that way.
HTH,
Andy
> From: lawrence Perepolkin
>
> Hi I am running the following locfit function:
> > fit <- locfit( log(base$Value) ~ base$lBrkOut + base$lExit
> , alpha=0.9)
> > plot(fit,type="persp" )
>
>
> The above two steps create a nice 3d plot. I would like to find the xy
> coordinates where the maximum z occurs.
>
> Does any one know of function to call that will display the
> xy coordinates
> where max(z) occurs?
>
> Thanks
> Lawrence
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>
More information about the R-help
mailing list