RE: [R] coefficient of partial determination...partial r square [ redux]

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Tue 08 Mar 2005 - 14:42:50 EST


If I'm not mistaken, partial R-squared is the R^2 of the quantities plotted in a partial residual plot, so you can base the computation on that. Prof. Fox's `car' package on CRAN has a function for creating those plots, but you need to figure out the way to extract the quantities being plotted.

[In any case, the basic tools for doing such computations are all in R, and it shouldn't be hard at all to cook up such a thing, starting from the formula. Writing a function that works on any conceivable models that can be fitted with lm() would be a bit more challenging, but I doubt you need that.]

HTH,
Andy

> From: Dr Carbon
>
> After the deafening silence from my last post (which likely caused
> shudders of disgust in statistics departments on the six continents)
> I'll reformulate:
>
> Is there a function that will return the coefficients of partial
> determination for the independent variables in a lm (or glm). For y =
> x1 + x2....xn can I use R to extract the partial rsq for x1 to n?
>
> I am, and remain, with Admiration, etc. etc., at your Bidding,
> DC
>
> ______________________________________________
> R-help@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
>
>
>



R-help@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 Received on Tue Mar 08 14:55:45 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:41 EST