predict.psFit {fitPS} | R Documentation |
S3 predict method for an object of class psFit
Description
S3 predict method for an object of class psFit
Usage
## S3 method for class 'psFit'
predict(
object,
newdata,
interval = c("none", "prof", "wald"),
level = 0.95,
...
)
Arguments
object |
an object of class |
newdata |
an optional vector of integers at which to calculate
|
interval |
either |
level |
the level of a confidence interval. Ignored if |
... |
other arguments passed to |
Value
either a named vector of fitted probabilities, or a data.frame
with columns predicted
, lower
, and upper
and the row
names set to show what terms are being calculatd
Examples
data(Psurveys)
roux = Psurveys$roux
fit = fitDist(roux)
predict(fit, interval = "prof")