⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 predict.glmmpql.html

📁 本程序是基于linux系统下c++代码
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>R: Predict Method for glmmPQL Fits</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 predict.glmmPQL {MASS}"><tr><td>predict.glmmPQL {MASS}</td><td align="right">R Documentation</td></tr></table>
<h2>Predict Method for glmmPQL Fits</h2>


<h3>Description</h3>

<p>
Obtains predictions from a fitted generalized linear model
with random effects.
</p>


<h3>Usage</h3>

<pre>
## S3 method for class 'glmmPQL':
predict(object, newdata = NULL, type = c("link", "response"),
       level, na.action = na.pass, ...)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>object</code></td>
<td>
a fitted object of class inheriting from <code>"glmmPQL"</code>.</td></tr>
<tr valign="top"><td><code>newdata</code></td>
<td>
optionally, a data frame in which to look for variables with
which to predict.</td></tr>
<tr valign="top"><td><code>type</code></td>
<td>
the type of prediction required.  The default is on the
scale of the linear predictors; the alternative <code>"response"</code>
is on the scale of the response variable.  Thus for a default
binomial model the default predictions are of log-odds (probabilities
on logit scale) and <code>type = "response"</code> gives the predicted
probabilities.</td></tr>
<tr valign="top"><td><code>level</code></td>
<td>
an optional integer vector giving the level(s) of grouping
to be used in obtaining the predictions. Level values increase from
outermost to innermost grouping, with level zero corresponding to the
population predictions. Defaults to the highest or innermost level of
grouping.</td></tr>
<tr valign="top"><td><code>na.action</code></td>
<td>
function determining what should be done with missing
values in <code>newdata</code>.  The default is to predict <code>NA</code>.</td></tr>
<tr valign="top"><td><code>...</code></td>
<td>
further arguments passed to or from other methods.</td></tr>
</table>

<h3>Value</h3>

<p>
If <code>level</code> is a single integer, a vector otherwise a data frame.</p>

<h3>See Also</h3>

<p>
<code><a href="glmmPQL.html">glmmPQL</a></code>, <code><a href="../../nlme/html/predict.lme.html">predict.lme</a></code>.
</p>


<h3>Examples</h3>

<pre>
fit &lt;- glmmPQL(y ~ trt + I(week &gt; 2), random = ~1 |  ID,
               family = binomial, data = bacteria)
predict(fit, bacteria, level = 0, type="response")
predict(fit, bacteria, level = 1, type="response")
</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 + -