[Splm-commits] r226 - in pkg: . man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon May 4 20:58:51 CEST 2020


Author: rsbivand
Date: 2020-05-04 20:58:50 +0200 (Mon, 04 May 2020)
New Revision: 226

Modified:
   pkg/DESCRIPTION
   pkg/NAMESPACE
   pkg/man/bsktest.Rd
   pkg/man/effects.splm.Rd
   pkg/man/listw2dgCMatrix.Rd
   pkg/man/print.splm.Rd
   pkg/man/slag.Rd
   pkg/man/sphtest.Rd
   pkg/man/spml.Rd
   pkg/man/vcov.splm.Rd
Log:
NAMESPACE etc. match r-spatial/spatialreg

Modified: pkg/DESCRIPTION
===================================================================
--- pkg/DESCRIPTION	2020-02-29 18:03:25 UTC (rev 225)
+++ pkg/DESCRIPTION	2020-05-04 18:58:50 UTC (rev 226)
@@ -1,14 +1,15 @@
 Package: splm
 Title: Econometric Models for Spatial Panel Data
-Version: 1.5-1
-Date: 2020-02-29
+Version: 1.5-2
+Date: 2020-05-04
 Authors at R: c(person(given = "Giovanni", family = "Millo", role = c("aut", "cre"), email = "giovanni.millo at generali.com"),
-             person(given = "Gianfranco", family = "Piras", role = c("aut"), email = "gpiras at mac.com"))
+             person(given = "Gianfranco", family = "Piras", role = c("aut"), email = "gpiras at mac.com"),
+             person("Roger", "Bivand", role = c("ctb"), email = "Roger.Bivand at nhh.no", comment=c(ORCID="0000-0003-2392-6140")))
 Author: Giovanni Millo [aut, cre],
 	Gianfranco Piras [aut]
 Maintainer: Giovanni Millo <giovanni.millo at generali.com>
 Description: ML and GM estimation and diagnostic testing of econometric models for spatial panel data.
-Depends: R (>= 2.12.0), spdep
-Imports: plm, maxLik, MASS, bdsmatrix, ibdreg, nlme, Matrix, spam, methods, spatialreg
+Depends: R (>= 2.12.0)
+Imports: plm, maxLik, MASS, bdsmatrix, ibdreg, nlme, Matrix, spam, methods, spatialreg, spdep
 License: GPL-2
 LazyLoad: yes

Modified: pkg/NAMESPACE
===================================================================
--- pkg/NAMESPACE	2020-02-29 18:03:25 UTC (rev 225)
+++ pkg/NAMESPACE	2020-05-04 18:58:50 UTC (rev 226)
@@ -11,8 +11,8 @@
 importFrom(plm, pmodel.response)
 importFrom(plm, pdim)
 importFrom(nlme, fdHess, lme)
-import(spdep)
-importFrom(spatialreg, do_ldet, eigen_setup, trW, impacts.gmsar)
+import(spdep, except=c(do_ldet, eigen_setup, trW, impacts.gmsar, impacts))
+importFrom(spatialreg, do_ldet, eigen_setup, trW, impacts.gmsar, impacts)
 importFrom(ibdreg, pchibar)
 import(Matrix)
 importFrom(spam, as.spam, diag.spam, solve.spam, t.spam, determinant.spam)

Modified: pkg/man/bsktest.Rd
===================================================================
--- pkg/man/bsktest.Rd	2020-02-29 18:03:25 UTC (rev 225)
+++ pkg/man/bsktest.Rd	2020-05-04 18:58:50 UTC (rev 226)
@@ -44,7 +44,7 @@
 data(Produc, package="plm")
 data(usaww)
 fm <- log(gsp)~log(pcap)+log(pc)+log(emp)+unemp
-bsktest(fm,data=Produc, listw = mat2listw(usaww),
+bsktest(fm,data=Produc, listw = spdep::mat2listw(usaww),
   test="LM1")
 }
 

Modified: pkg/man/effects.splm.Rd
===================================================================
--- pkg/man/effects.splm.Rd	2020-02-29 18:03:25 UTC (rev 225)
+++ pkg/man/effects.splm.Rd	2020-05-04 18:58:50 UTC (rev 226)
@@ -55,7 +55,7 @@
 data(Produc, package = "plm")
 data(usaww)
 fm <- log(gsp) ~ log(pcap) + log(pc) + log(emp) + unemp
-err <- spml(fm, data = Produc, listw = mat2listw(usaww), model="within")
+err <- spml(fm, data = Produc, listw = spdep::mat2listw(usaww), model="within")
 summary(err)
 eff <- effects(err) 
 print(eff)

Modified: pkg/man/listw2dgCMatrix.Rd
===================================================================
--- pkg/man/listw2dgCMatrix.Rd	2020-02-29 18:03:25 UTC (rev 225)
+++ pkg/man/listw2dgCMatrix.Rd	2020-05-04 18:58:50 UTC (rev 226)
@@ -10,7 +10,7 @@
 }
 
 \arguments{
-\item{listw}{a \code{listw} object created for example by \code{nb2listw} }
+\item{listw}{a \code{listw} object created for example by \code{spdep::nb2listw} }
   \item{zero.policy}{See \code{lagsarlm} for details}
 }
 
@@ -25,7 +25,7 @@
 
 \examples{
 data(columbus, package="spdep")
-listw<-nb2listw(col.gal.nb)
+listw<-spdep::nb2listw(col.gal.nb)
 spW<-listw2dgCMatrix(listw)
 }
 \keyword{spatial}

Modified: pkg/man/print.splm.Rd
===================================================================
--- pkg/man/print.splm.Rd	2020-02-29 18:03:25 UTC (rev 225)
+++ pkg/man/print.splm.Rd	2020-05-04 18:58:50 UTC (rev 226)
@@ -36,7 +36,7 @@
 data(Produc, package = "plm") 
 data(usaww)
 spremod<-spml(log(gsp)~log(pcap)+log(pc)+log(emp)+unemp, data=Produc,
-listw = mat2listw(usaww), model="random", lag=TRUE, spatial.error="none")
+listw = spdep::mat2listw(usaww), model="random", lag=TRUE, spatial.error="none")
 summary(spremod)
 }
 \keyword{spatial}

Modified: pkg/man/slag.Rd
===================================================================
--- pkg/man/slag.Rd	2020-02-29 18:03:25 UTC (rev 225)
+++ pkg/man/slag.Rd	2020-05-04 18:58:50 UTC (rev 226)
@@ -27,7 +27,7 @@
 \examples{
 data(Produc, package="plm")
 data(usaww)
-usalw <- mat2listw(usaww)
+usalw <- spdep::mat2listw(usaww)
 fm <- log(gsp)~log(pcap)+log(pc)+log(emp)+unemp+slag(log(pcap),
   listw=usalw)
 slxmod <- spreml(fm, data=Produc, w = usaww,

Modified: pkg/man/sphtest.Rd
===================================================================
--- pkg/man/sphtest.Rd	2020-02-29 18:03:25 UTC (rev 225)
+++ pkg/man/sphtest.Rd	2020-05-04 18:58:50 UTC (rev 226)
@@ -21,7 +21,7 @@
   \item{data}{an object of class \code{data.frame} or \code{pdata.frame}. An optional data frame containing the variables
   in the model. When the obect is a \code{data.frame}, the first two columns may contain the indexes. See \code{index}}
 \item{index}{if not NULL (default), a character vector to identify the indexes among the columns of the \code{data.frame}}
-\item{listw}{an object of class \code{listw} created for example by \code{nb2listw} }
+\item{listw}{an object of class \code{listw} created for example by \code{spdep::nb2listw} }
 \item{spatial.model}{one of \code{c("lag","error","sarar")}, the model to be estimated (only lag, only error, both lag and error dependence)}
 \item{method}{one of \code{c("ML","GM")}}
 \item{errors}{one of \code{c("BSK","KPP")}. When \code{method} is \code{"ML"} defines the specification of the innovations}
@@ -46,7 +46,7 @@
 data(Produc, package="plm")
 data(usaww)
 fm <- log(gsp)~log(pcap)+log(pc)+log(emp)+unemp
-test1<-sphtest(fm,data=Produc, listw = mat2listw(usaww),
+test1<-sphtest(fm,data=Produc, listw = spdep::mat2listw(usaww),
                 spatial.model = "error", method="GM")
 test1
 mod1<- spgm(fm, data=Produc, listw = usaww, model = "random",

Modified: pkg/man/spml.Rd
===================================================================
--- pkg/man/spml.Rd	2020-02-29 18:03:25 UTC (rev 225)
+++ pkg/man/spml.Rd	2020-05-04 18:58:50 UTC (rev 226)
@@ -87,15 +87,15 @@
 ## the two standard specifications (SEM and SAR) one with FE
 ## and the other with RE:
 ## fixed effects panel with spatial errors
-fespaterr <- spml(fm, data = Produc, listw = mat2listw(usaww),
+fespaterr <- spml(fm, data = Produc, listw = spdep::mat2listw(usaww),
                    model="within", spatial.error="b", Hess = FALSE)
 summary(fespaterr)
 ## random effects panel with spatial lag
-respatlag <- spml(fm, data = Produc, listw = mat2listw(usaww),
+respatlag <- spml(fm, data = Produc, listw = spdep::mat2listw(usaww),
                    model="random", spatial.error="none", lag=TRUE)
 summary(respatlag)
 ## calculate impact measures
-impac1 <- impacts(respatlag, listw = mat2listw(usaww, style = "W"), time = 17)
+impac1 <- spatialreg::impacts(respatlag, listw = spdep::mat2listw(usaww, style = "W"), time = 17)
 summary(impac1, zstats=TRUE, short=TRUE)
 }
 

Modified: pkg/man/vcov.splm.Rd
===================================================================
--- pkg/man/vcov.splm.Rd	2020-02-29 18:03:25 UTC (rev 225)
+++ pkg/man/vcov.splm.Rd	2020-05-04 18:58:50 UTC (rev 226)
@@ -30,7 +30,7 @@
 ## data(Produc, package="plm")
 ## data(usaww)
 ## fm <- log(gsp)~log(pcap)+log(pc)+log(emp)+unemp
-## sarremod <- spml(fm, data=Produc, listw = mat2listw(usaww),
+## sarremod <- spml(fm, data=Produc, listw = spdep::mat2listw(usaww),
 ##  model="random", lag=TRUE, spatial.error="none")
 ## ## compact representation of betas
 ## library(lmtest)



More information about the Splm-commits mailing list