GR2 function

Computes the Generalized R-squared.

Computes the Generalized R-squared.

GR2(object)

Arguments

  • object: is an object of class slmfit.

Returns

the value for generalized R-squared

Examples

data(exampledataset) ## load a toy data set slmobj <- slmfit(formula = counts ~ pred1 + pred2, data = exampledataset, xcoordcol = 'xcoords', ycoordcol = 'ycoords', areacol = 'areavar') GR2(slmobj)
  • Maintainer: Matt Higham
  • License: GPL-2
  • Last published: 2022-12-11