Message-ID: <49A838CD.4010401@statistik.tu-dortmund.de>
Date: 2009-02-27T19:02:37Z
From: Uwe Ligges
Subject: select Intercept coefficients only
In-Reply-To: <1faba41f0902271045j390bb1ccl320f35a4cfa5ef3e@mail.gmail.com>
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.