Description Usage Arguments Author(s) See Also Examples
Predicted values based on simplex regression object
1 2 3 |
object |
fitted model object of class |
newdata |
an optional data frame in which to look for variables with which to predict. If omitted, original observations are used. |
type |
character indicating type of predictions:fitted mean of response ( |
na.action |
function determining what should be done with missing values in |
... |
currently not used |
Chengchun Shi
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## fit the model
data("sdac", package="simplexreg")
sim.glm2 <- simplexreg(rcd~ageadj+chemo|age, link = "logit",
data = sdac)
data("retinal", package = "simplexreg")
sim.gee2 <- simplexreg(Gas~LogT+LogT2+Level|LogT+Level|Time,
link = "logit", corr = "AR1", id = ID, data = retinal)
## predict the mean
predict(sim.glm2, type = "response")
## predict the dispersion
predict(sim.gee2, type = "dispersion")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.