Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4b4267b

Browse files
committed
start 142
1 parent0aa4a6b commit4b4267b

File tree

7 files changed

+19
-6
lines changed

7 files changed

+19
-6
lines changed

‎DESCRIPTION‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: spatialreg
2-
Version: 1.4-1
3-
Date: 2025-08-29
2+
Version: 1.4-2
3+
Date: 2025-09-05
44
Title: Spatial Regression Analysis
55
Encoding: UTF-8
66
Authors@R: c(person("Roger", "Bivand", role = c("cre", "aut"), email = "Roger.Bivand@nhh.no", comment=c(ORCID="0000-0003-2392-6140")),
@@ -27,7 +27,7 @@ Authors@R: c(person("Roger", "Bivand", role = c("cre", "aut"), email = "Roger.Bi
2727
person(given = "JuanTomas", family = "Sayago", role = c("ctb"), email = "juantomas.sayago@gmail.com"),
2828
person("Michael", "Tiefelsdorf", role = "ctb"))
2929
Depends: R (>= 3.3), spData (>= 2.3.1), Matrix, sf
30-
Imports: spdep (>= 1.4-1), coda, methods, MASS, boot, splines, LearnBayes,
30+
Imports: spdep (>= 1.4.1), coda, methods, MASS, boot, splines, LearnBayes,
3131
nlme, multcomp
3232
Suggests: parallel, RSpectra, tmap, foreign, spam, knitr, lmtest, expm,
3333
sandwich, rmarkdown, igraph, tinytest, codingMatrices

‎NEWS.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#Version 1.4-1 (development)
1+
#Version 1.4-2 (development)
2+
3+
#Version 1.4-1 (2025-09-04)
24

35
* import`spdep` >= 1.4.1
46

‎R/sarlm_tests.R‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LR.Sarlm <- function(x, y)
2222
elseLLx<-x
2323
if (!inherits(y,"logLik"))LLy<- logLik(y)
2424
elseLLy<-y
25-
statistic<-2*(LLx-LLy)
25+
statistic<-c(2*(LLx-LLy))
2626
attr(statistic,"names")<-"Likelihood ratio"
2727
parameter<- abs(attr(LLx,"df")- attr(LLy,"df"))
2828
if (parameter<1)

‎man/ML_models.Rd‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ Refer to the help page of \code{\link{predict.Sarlm}} for discussions and
118118
references.
119119

120120
Becausenumericaloptimisationisusedtofindthevaluesoflambdaandrhoin \code{sacsarlm},careneedstobeshown.Ithasbeenfoundthatthesurfaceofthe2Dlikelihoodfunctionoftenformsa \dQuote{bananatrench} from (lowrho,highlambda) through (highrho,highlambda) to (highrho,lowlambda)values.Inaddition,sometimesthebananahasoptimatowardsbothends,onelocal,theotherglobal,andconseqentlythechoiceofthestartingpointforthefinaloptimizationbecomescrucial.Thedefaultapproachisnottouse just (0,0)asastartingpoint,nor the (rho,lambda)valuesfrom \code{gstsls},whichlieinacentralpartofthe \dQuote{trench},buteitherfourvalues at (lowrho,highlambda), (0,0), (highrho,highlambda), and (highrho,lowlambda),andtousethebestofthesestartpointsforthefinaloptimization.Optionally,ninepointscanbeusedspanningthe whole (lower,upper)space.
121+
122+
Fromversion1.4.1,functionsformodelsincludingspatiallylaggedindependentvariableswarnonfittingifanyoftheright-handsidevariablesarefactors.Thisisbecausetheinterpretationofcoefficientsthatarenotslopesisunclearwhenthevariableisnotinterpretableonanunboundedline,suchasfactors.Factorvariablenamesareshownwiththesuffix \dQuote{(F)},others \dQuote{dy/dx}inoutputfromimpactmethods.Adiscussioncanbefoundat \url{https://github.com/rsbivand/eqc25_talk}.
121123
}
122124

123125
\section{Controlarguments}{

‎man/SET_MCMC.Rd‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ neighbours, if FALSE (default) assign NA}
100100
}}
101101
}}
102102

103+
\details{Fromversion1.4.1,functionsformodelsincludingspatiallylaggedindependentvariableswarnonfittingifanyoftheright-handsidevariablesarefactors.Thisisbecausetheinterpretationofcoefficientsthatarenotslopesisunclearwhenthevariableisnotinterpretableonanunboundedline,suchasfactors.Factorvariablenamesareshownwiththesuffix \dQuote{(F)},others \dQuote{dy/dx}inoutputfromimpactmethods.Adiscussioncanbefoundat \url{https://github.com/rsbivand/eqc25_talk}.
104+
}
105+
103106
\references{LeSageJandRK Pace (2009)IntroductiontoSpatialEconometrics.CRCPress,BocaRaton.
104107
}
105108

‎man/SLX.Rd‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ for the data on which the model was fitted. Should have row names corresponding
5454
}
5555

5656
\value{
57-
The \code{lmSLX}functionreturnsan \dQuote{lm}objectwitha \dQuote{mixedImps}listofthreeimpact matrixes (impactsandstandarderrors)fordirect,indirectandtotalimpacts;totalimpactscalculatedusingasimplifiedlocalcopyoftheestimablefunctionfromthegmodelspackage.
57+
The \code{lmSLX}functionreturnsan \dQuote{lm}objectwitha \dQuote{mixedImps}listofthreeimpact matrixes (impactsandstandarderrors)fordirect,indirectandtotalimpacts;totalimpactsandtheirstandarderrorscalculatedusing \code{multcomp::glht}.
58+
}
59+
60+
61+
\details{Fromversion1.4.1,functionsformodelsincludingspatiallylaggedindependentvariableswarnonfittingifanyoftheright-handsidevariablesarefactors.Thisisbecausetheinterpretationofcoefficientsthatarenotslopesisunclearwhenthevariableisnotinterpretableonanunboundedline,suchasfactors.Factorvariablenamesareshownwiththesuffix \dQuote{(F)},others \dQuote{dy/dx}inoutputfromimpactmethods.Adiscussioncanbefoundat \url{https://github.com/rsbivand/eqc25_talk}.
5862
}
5963

6064
\seealso{\code{\link{lm}}

‎man/impacts.Rd‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ If a model is fitted with the \dQuote{Durbin=} set to a formula subsetting the e
6666
When \code{Q}and \code{tr}aregiven,additionimpactcomponentresultsareprovidedforeachstepinthetracesofpowersoftheweightsmatrixuptoandincludingthe \code{Q}'th power. This increases computing time because the output object is substantially increased in size in proportion to the size of\code{Q}.
6767
6868
The method for\code{gmsar} objects is only for those of\code{type}\code{SARAR} output by\code{gstsls}, and assume that the spatial error coefficient is fixed, and thus omitted from the coefficients and covariance matrix used for simulation.
69+
70+
From version 1.4.1, functions for models including spatially lagged independent variables warn on fitting if any of the right-hand side variables are factors. This is because the interpretation of coefficients that are not slopes is unclear when the variable is not interpretable on an unbounded line, such as factors. Factor variable names are shown with the suffix\dQuote{(F)}, others\dQuote{dy/dx} in output from impact methods. A discussion can be found at\url{https://github.com/rsbivand/eqc25_talk}.
6971
}
7072
7173
\value{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp