SpatReg_Extract {SCDA} | R Documentation |
Extracts numerical values for the estimated regression parameters (i.e., spatial coefficients, regression coefficients, and residuals variance) for a given spatial regression model of class lm
or Sarlm
.
Description
Extracts the numerical values for the regression parameters (i.e., estimated spatial parameters, regression coefficients, and residuals variance) 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_Extract(SRModel)
Arguments
SRModel |
Estimated spatial or non-spatial regression model of class |
Value
A named vector
containing numerical values for the estimated spatial parameters (e.g., \rho
in SAR or \lambda
in SEM), regression coefficients, and residuals variance 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_Extract(SRModel = SCSAR$ClusterFitModels[[1]])
SpatReg_Extract(SRModel = SCSAR$ClusterFitModels[[2]])
SpatReg_Extract(SRModel = SCSAR$ClusterFitModels[[3]])
[Package SCDA version 0.0.2 Index]