[R] glm fit with no intercept

Rolf Turner rolf at math.unb.ca
Fri Jan 7 17:30:07 CET 2005


As in any modelling situation in R or S, to suppress the
intercept you simply put a ``-1'' in the formula.  E.g.:

	fit <- glm(y~x-1,family=binomial)

			cheers,

				Rolf Turner
				rolf at math.unb.ca




More information about the R-help mailing list