View source: R/SpatReg_Extract.R
SpatReg_Extract | R Documentation |
lm
or Sarlm
.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.
SpatReg_Extract(SRModel)
SRModel |
Estimated spatial or non-spatial regression model of class |
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
.
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]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.