[R] Q: how to extract coefisients from one glm and implement them in to an other glm?

Charles C. Berry cberry at tajo.ucsd.edu
Mon Aug 13 22:36:52 CEST 2007



Part of the homework you were supposed to do before asking this question:


help.search("coefficients")
.
.
.
coef(stats)                         Extract Model Coefficients
.
.
.

So, go read

?coef

and

> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

As your email says.


Then go read ?predict which is probably more germane to your goal.



On Mon, 13 Aug 2007, Tom Willems wrote:

> Dear R ussers,
>
> I'm still working with the categorical models, and i can not do cross
> validation on them because odf their nature.
> not cv works perfectly on other models so i wonderd if it is possible to
> extract the beta's from a categorical model, then use their value  in a
> 0/1 glm.
> Their formula is the same, so their assumptions should still hold.
>
> Is this possible in R.
>
> kind regards,
> Tom W.
>
>
> Disclaimer: click here
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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
> and provide commented, minimal, self-contained, reproducible code.
>

Charles C. Berry                            (858) 534-2098
                                             Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	            UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901



More information about the R-help mailing list