Dear K,
As I just confirmed, dfbetas() works in a model without an intercept, so you
should send more information about the problem that you apparently
encountered:
> mod <- lm(dist ~ speed - 1, data=cars)
> head(dfbetas(mod))
speed
1 -0.020499616
2 -0.003469201
3 -0.061492972
4 0.006084618
5 -0.031008553
6 -0.078358279
Regards,
John
------------------------------
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
web: socserv.mcmaster.ca/jfox
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at
r-project.org]
On> Behalf Of Kutlwano Ramaboa
> Sent: January-14-09 6:40 AM
> To: r-help at r-project.org
> Subject: [R] dfbetas without intercept
>
>
> Hello
>
> I am running a regression without the intercept, and want to compute
dfbetas.> How do I do this? The dfbetas function only works when the intercept is
> included in the model.
>
> Regards
> K
>
> [[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.