📄 glm.convert.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Change a Negative Binomial fit to a GLM fit</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../../R.css">
</head><body>
<table width="100%" summary="page for glm.convert {MASS}"><tr><td>glm.convert {MASS}</td><td align="right">R Documentation</td></tr></table>
<h2>Change a Negative Binomial fit to a GLM fit</h2>
<h3>Description</h3>
<p>
This function modifies an output object from <code>glm.nb()</code> to one
that looks like the output from <code>glm()</code> with a negative binomial
family. This allows it to be updated keeping the theta parameter
fixed.
</p>
<h3>Usage</h3>
<pre>
glm.convert(object)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>object</code></td>
<td>
An object of class <code>"negbin"</code>, typically the output from
<code><a href="glm.nb.html">glm.nb</a>()</code>.
</td></tr>
</table>
<h3>Details</h3>
<p>
Convenience function needed to effect some low level changes to the
structure of the fitted model object.
</p>
<h3>Value</h3>
<p>
An object of class <code>"glm"</code> with negative binomial family. The theta
parameter is then fixed at its present estimate.</p>
<h3>See Also</h3>
<p>
<code><a href="glm.nb.html">glm.nb</a></code>, <code><a href="negative.binomial.html">negative.binomial</a></code>, <code><a href="../../VGAM/html/notdocumentedyet.html">glm</a></code>
</p>
<h3>Examples</h3>
<pre>
quine.nb1 <- glm.nb(Days ~ Sex/(Age + Eth*Lrn), data = quine)
quine.nbA <- glm.convert(quine.nb1)
quine.nbB <- update(quine.nb1, . ~ . + Sex:Age:Lrn)
anova(quine.nbA, quine.nbB)
</pre>
<hr><div align="center">[Package <em>MASS</em> version 7.2-44 <a href="00Index.html">Index]</a></div>
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -