Learn R Programming

sptotal (version 1.0.1)

get.predinfo-deprecated: Display basic summary information in a tabular form.

Description

get.predinfo() has been deprecated. Information given is now provided in the basic print of a predict.slmfit() object. Creates a list of tables that shows the prediction, standard error, and confidence interval for the prediction, as well as some summary information about the sample.

Usage

get.predinfo(x, conf_level = 0.9)

Value

a list of three tables, including

  • simptab, which contains the prediction and its standard error,

  • confbounds, which contains a confidence interval for the prediction, and

  • outptmat, a table of sampling information, including the number of sites sampled, the total number of sites, the total observed response, and the observed average density (equal to the average response if all site areas are equal).

Arguments

x

the output of the predict.slmfit() function, of class predict.slmfit

conf_level

is the confidence level for a normal-based confidence interval (default = 0.90).

Examples

Run this code
data(exampledataset) ## load a toy data set
slmobj <- slmfit(formula = counts ~ pred1 + pred2, data = exampledataset,
xcoordcol = 'xcoords', ycoordcol = 'ycoords', areacol = 'areavar')
predobj <- predict(slmobj)
## Not Run
## get.predinfo(predobj)

Run the code above in your browser using DataLab