predict.simplexreg: Prediction Method for simplexreg Objects

Description Usage Arguments Author(s) See Also Examples

View source: R/simplexreg.R

Description

Predicted values based on simplex regression object

Usage

1
2
3
## S3 method for class 'simplexreg'
predict(object, newdata = NULL, type = c("response", "dispersion"), 
   	na.action, ...)

Arguments

object

fitted model object of class "simplexreg"

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 ("response") or fitted dispersion parameter("dispersion")

na.action

function determining what should be done with missing values in newdata

...

currently not used

Author(s)

Chengchun Shi

See Also

simplexreg

Examples

 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")

simplexreg documentation built on May 29, 2017, 9:41 a.m.

Search within the simplexreg package
Search all R packages, documentation and source code