[R] select Intercept coefficients only
Uwe Ligges
ligges at statistik.tu-dortmund.de
Fri Feb 27 20:02:37 CET 2009
choonhong ang wrote:
> Hi friends,
>
> Is there a function to select intercept coefficients only ?
>
> When I use "coeficients" it shows me all the coefficients, but I only want a
> specific coefficients.
What about indexing, e.g. as in:
coefficients(some_lm_object)["(Intercept)"]
Uwe Ligges
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list