SpatReg_PseudoR2: Computes the Pseudo R^2 metric for a given spatial regression...

View source: R/SpatReg_PseudoR2.R

SpatReg_PseudoR2R Documentation

Computes the Pseudo R^2 metric for a given spatial regression model of class lm or Sarlm.

Description

Computes the Pseudo R^2 metric for a given spatial regression model of class lm or Sarlm as defined in package spatialreg. The function can be applied to the output of any SCSR model and contained in the ClusterFitModels output of SCSR_Estim function.

Usage

SpatReg_PseudoR2(SRModel)

Arguments

SRModel

Estimated spatial or non-spatial regression model of class lm or Sarlm (see package spatialreg for details.)

Value

A numeric value reporting the Pseudo R^2 for the input model in SRModel.

Examples

data(Data_RC_PM_RM_JABES2024, package="SCDA")
SCSAR <- SCSR_Estim(Formula = "Gini_SO ~ GDPPC_PPS2020 + Share_AgroEmp",
                    Data_sf = Data2020, G=3, listW=listW, Type="SCSAR", Phi = 0.50)
SpatReg_PseudoR2(SRModel = SCSAR$ClusterFitModels[[1]])
SpatReg_PseudoR2(SRModel = SCSAR$ClusterFitModels[[2]])
SpatReg_PseudoR2(SRModel = SCSAR$ClusterFitModels[[3]])


SCDA documentation built on Oct. 30, 2024, 9:06 a.m.

Related to SpatReg_PseudoR2 in SCDA...