Learn R Programming

sptotal (version 1.0.1)

GR2: Computes the Generalized R-squared.

Description

Computes the Generalized R-squared.

Usage

GR2(object)

Value

the value for generalized R-squared

Arguments

object

is an object of class slmfit.

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')
GR2(slmobj)

Run the code above in your browser using DataLab