View source: R/print.predict.stratafit.R
print.predict.stratafit | R Documentation |
predict.stratafit()
function.This function uses the object that is output from
predict.stratafit()
of class predict.stratafit
.
## S3 method for class 'predict.stratafit'
print(x, digits = max(3L, getOption("digits") - 3L), ...)
x |
is a prediction object generated from
|
digits |
is the number of digits to be displayed in the model output |
... |
further arguments passed to or from other methods. |
a list with
a table of predictions, standard errors, and confidence intervals for each stratum and for the total.
data(exampledataset) ## load a toy data set
exampledataset$strata <- c(rep("A", 19), rep("B", 21))
strataobj <- stratafit(formula = counts ~ pred1 + pred2,
data = exampledataset, stratacol = "strata",
xcoordcol = 'xcoords', ycoordcol = 'ycoords', areacol = 'areavar')
predict(strataobj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.