residuals.tramME | R Documentation |
Calculates the score residuals of an intercept term fixed at 0.
## S3 method for class 'tramME'
residuals(
object,
param = NULL,
newdata = NULL,
fix_smooth = !is.null(newdata),
...
)
object |
A |
param |
An optional named list of parameter values (beta and theta). See details. Optionally, gamma elements can also be added, which leads to 'fixing' those random effects terms at the supplied values. |
newdata |
An optional |
fix_smooth |
Logical; it is set to |
... |
Optional arguments (for consistency with generic) |
library("survival")
fit <- SurvregME(Surv(time, status) ~ rx + (1 | litter), data = rats)
resid(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.