1useDynLib(spdep)
2
3import(spData)
4import(sf)
5import(sp)
6import(methods)
7
8importFrom(stats, influence.measures, lag, punif, lm, var, integrate,
9             summary.lm, pchisq, pnorm, sd, ppois, qnorm, rnorm,
10             mahalanobis, dist, p.adjust, density, quantile, cor,
11             aggregate, "coefficients", "fitted", "gaussian",
12             "model.frame", "model.matrix", "model.response", "na.fail",
13             "na.omit", "naresid", "optimise", "printCoefmat", "resid",
14             "terms", "uniroot", "weighted.residuals", "weights", "median")
15
16importFrom(stats, model.matrix, model.response, model.extract, coefficients, residuals, deviance, optimize, optim, nlminb, na.fail, as.formula, terms, coef, gaussian, model.weights, model.offset, glm.fit, logLik, predict, formula, lm.fit, model.frame, AIC, anova, napredict, nlm, optimHess, resid, fitted, weighted.residuals, weights, naresid, optimise, fitted.values, delete.response, printCoefmat, uniroot, na.omit, predict.lm, "dbeta", "rchisq", "runif", "spline") # deprecated
17
18importFrom(deldir, deldir)
19importFrom(boot, boot)
20
21importFrom(graphics, par, locator, lines, text, plot.new, plot.window, segments, points, identify, symbols, abline, hist, arrows, axis, stem)
22importFrom(utils, write.table, object.size, read.table, read.csv, packageDescription)
23importFrom(grDevices, rainbow)
24if (.Platform$OS.type == "windows") importFrom(grDevices, bringToTop)
25importFrom(utils, packageVersion)
26importFrom(units, set_units)
27importFrom(s2, s2_distance, s2_closest_edges, s2_buffer_cells, s2_intersects_matrix, s2_dwithin_matrix)
28importFrom(e1071, skewness, kurtosis)
29
30importFrom(MASS, mvrnorm) # deprecated
31importFrom(coda, as.mcmc, HPDinterval) # deprecated
32importFrom(splines, interpSpline) # deprecated
33importFrom(nlme, fdHess) # deprecated
34if (R.version$major >= 3) { # deprecated
35  if (R.version$major == 3 && R.version$minor < 3) {
36    import(Matrix)
37  } else if (R.version$major == 3 && R.version$minor >= 3) {
38    import(Matrix, except=c("expm"))
39  } else if(R.version$major > 3)
40    import(Matrix, except=c("expm"))
41} else {
42  import(Matrix)
43}
44importFrom(LearnBayes, rwmetrop) # deprecated
45importFrom(gmodels, estimable) # deprecated
46importFrom(expm, expAtv, expm) # deprecated
47
48#importMethodsFrom("Matrix", "%*%", "crossprod", "t", "diag", "rowSums", "colSums") # defunct
49#importFrom("Matrix", "Diagonal", "drop") # defunct
50
51exportMethods(coerce)
52
53export(EBImoran.mc, probmap, choynowski, EBest, EBlocal)
54
55export(airdist, card, cell2nb, vi2mrc, n.comp.nb, diffnb, dnearneigh, droplinks)
56
57export(gabrielneigh, geary.test, geary, geary.mc, globalG.test, graph2nb,
58	joincount.test, joincount.mc, joincount.multi, print.jcmulti,
59	knearneigh, knn2nb)
60
61export(listw2sn, sn2listw, read.gwt2nb,	write.sn2gwt, lm.LMtests,
62	lm.morantest, localG, localG_perm, localmoran, localmoran_perm, moran,
63	moran.test, moran.mc, moran.plot, localmoran.sad, lm.morantest.sad,
64	nb2listw, nb2listwdist, nb2mat, listw2mat, mat2listw, invIrM, invIrW, nbdists, nblag,
65	nblag_cumul, poly2nb, read.gal, write.nb.gal, read.geoda, relativeneigh,
66	soi.graph, sp.correlogram, sp.mantel.mc, set.spChkOption, chkIDs,
67	get.spChkOption, spNamedVec, tri2nb,
68	spweights.constants, lag.listw, listw2U, listw2star, is.symmetric.nb,
69	sym.attr.nb, include.self, make.sym.nb, union.nb, intersect.nb,
70	setdiff.nb, complement.nb, Szero, spdep, print.nb, summary.nb,
71	plot.nb, edit.nb, subset.nb, summary.listw, print.listw, subset.listw,
72	plot.Gabriel, plot.relative, print.jclist, print.LMtestlist,
73	plot.mc.sim, as.data.frame.localmoransad, print.localmoransad,
74	summary.localmoransad, print.summary.localmoransad, print.moransad,
75	summary.moransad, print.summary.moransad, print.spcor, plot.spcor)
76
77export(write.sn2dat, read.dat2listw, nb2blocknb, p.adjustSP,
78	is.symmetric.glist, nb2lines, listw2lines, df2sn,
79	plot.listw, aggregate.nb, old.make.sym.nb)
80
81export(nb2WB, listw2WB, nb2INLA)
82
83export(lm.morantest.exact, print.moranex, localmoran.exact, localmoran.exact.alt, print.localmoranex, as.data.frame.localmoranex)
84
85export(mstree, nbcosts, nbcost, plot.mst, plot.skater, prunecost, ssw, prunemst, skater)
86
87export(aple, aple.mc, aple.plot, localAple)
88
89export(tolerance.nb, Rotation)
90
91export(lee.mc, lee, lee.test)
92
93export(LOSH, LOSH.cs, LOSH.mc)
94
95export(localC, localC_perm)
96
97export(grid2nb)
98
99export(autocov_dist)
100
101export(set.VerboseOption, get.VerboseOption, set.ZeroPolicyOption,
102        get.ZeroPolicyOption)
103export(set.mcOption, get.mcOption, set.coresOption, get.coresOption,
104        set.ClusterOption, get.ClusterOption)
105
106
107
108export(errorsarlm) # deprecated (prabclus, spfrontier, ssfa)
109
110export(lagsarlm) # deprecated (lagsarlmtree)
111
112export(sacsarlm) # deprecated
113
114export(print.sarlm, summary.sarlm, residuals.sarlm, deviance.sarlm,
115	coef.sarlm, fitted.sarlm, logLik.sarlm, anova.sarlm, vcov.sarlm,
116	predict.sarlm, print.summary.sarlm, print.sarlm.pred, bptest.sarlm) # deprecated
117
118export(lmSLX, create_WX, predict.SLX) # deprecated
119
120export(spBreg_lag, spBreg_err, spBreg_sac) # deprecated
121
122export(spautolm, residuals.spautolm, deviance.spautolm, coef.spautolm,
123	fitted.spautolm, print.spautolm, summary.spautolm, LR1.spautolm,
124	logLik.spautolm, print.summary.spautolm) # deprecated
125
126export(MCMCsamp) # deprecated
127
128export(do_ldet, eigen_setup, mcdet_setup, cheb_setup, spam_setup,
129        Matrix_setup, LU_setup, Matrix_J_setup, spam_update_setup,
130        moments_setup, SE_classic_setup, SE_whichMin_setup, SE_interp_setup,
131        LU_prepermutate_setup, eigen_pre_setup) # deprecated (spatialprobit, splm, HSAR)
132
133export(eigenw, jacobianSetup, can.be.simmed, similar.listw) # deprecated
134
135export(trW, impacts, intImpacts) # deprecated (splm, sphet)
136
137export(as_dgRMatrix_listw, as_dsTMatrix_listw, as_dsCMatrix_I,
138	as_dsCMatrix_IrW, Jacobian_W, powerWeights) # deprecated
139
140export(as.spam.listw) # deprecated (latticeDensity, splm)
141
142export(LR.sarlm, LR1.sarlm, Wald1.sarlm) # deprecated
143
144export(Hausman.test) # deprecated
145
146export(SpatialFiltering, print.SFResult, fitted.SFResult,
147	ME, print.ME_res, fitted.ME_res) # deprecated
148
149export(lagmess) # deprecated
150
151export(GMerrorsar, gstsls, GMargminImage,
152	residuals.gmsar, deviance.gmsar, coef.gmsar, fitted.gmsar,
153	print.gmsar, summary.gmsar, print.summary.gmsar) # deprecated
154
155export(stsls, print.stsls, summary.stsls, print.summary.stsls,
156	residuals.stsls, coef.stsls, deviance.stsls) # deprecated
157
158export(mom_calc, mom_calc_int2) # deprecated
159
160export(griffith_sone, subgraph_eigenw) # deprecated
161
162export(lextrB, lextrW, lextrS, l_max) # deprecated
163
164#import(maptools)
165
166S3method(print, nb)
167S3method(summary, nb)
168S3method(plot, nb)
169S3method(edit, nb)
170S3method(subset, nb)
171S3method(aggregate, nb)
172
173S3method(summary, listw)
174S3method(print, listw)
175S3method(plot, listw)
176S3method(subset, listw)
177S3method(lag, listw)
178
179S3method(plot, Gabriel)
180S3method(plot, relative)
181
182S3method(print, jclist)
183S3method(print, jcmulti)
184S3method(print, LMtestlist)
185S3method(summary, LMtestlist)
186S3method(print, LMtestlist.summary)
187S3method(plot, mc.sim)
188
189S3method(as.data.frame, localmoransad)
190S3method(print, localmoransad)
191S3method(summary, localmoransad)
192S3method(print, summary.localmoransad)
193
194S3method(print, moransad)
195S3method(summary, moransad)
196S3method(print, summary.moransad)
197
198S3method(print, moranex)
199S3method(print, localmoranex)
200S3method(as.data.frame, localmoranex)
201
202S3method(print, spcor)
203S3method(plot, spcor)
204
205S3method(plot, mst)
206S3method(plot, skater)
207
208S3method(localC, default)
209S3method(localC, formula)
210S3method(localC, list)
211S3method(localC, matrix)
212S3method(localC, data.frame)
213S3method(localC_perm, default)
214S3method(localC_perm, formula)
215
216# deprecate candidates
217
218S3method(print, sarlm) # deprecated
219S3method(summary, sarlm) # deprecated
220S3method(residuals, sarlm) # deprecated
221S3method(deviance, sarlm) # deprecated
222S3method(coef, sarlm) # deprecated
223S3method(vcov, sarlm) # deprecated
224S3method(fitted, sarlm) # deprecated
225S3method(logLik, sarlm) # deprecated
226S3method(anova, sarlm) # deprecated
227S3method(predict, sarlm) # deprecated
228S3method(impacts, sarlm) # deprecated
229S3method(print, summary.sarlm) # deprecated
230S3method(print, sarlm.pred) # deprecated
231S3method(as.data.frame, sarlm.pred)
232
233S3method(Hausman.test, sarlm) # deprecated
234S3method(MCMCsamp, sarlm) # deprecated
235
236S3method(impacts, MCMC_sar_g) # deprecated
237S3method(impacts, MCMC_sem_g) # deprecated
238S3method(impacts, MCMC_sac_g) # deprecated
239
240S3method(impacts, SLX) # deprecated
241S3method(predict, SLX) # deprecated
242
243S3method(residuals, spautolm) # deprecated
244S3method(deviance, spautolm) # deprecated
245S3method(coef, spautolm) # deprecated
246S3method(fitted, spautolm) # deprecated
247S3method(print, spautolm) # deprecated
248S3method(summary, spautolm) # deprecated
249S3method(logLik, spautolm) # deprecated
250S3method(MCMCsamp, spautolm) # deprecated
251
252S3method(print, summary.spautolm) # deprecated
253
254S3method(residuals, gmsar) # deprecated
255S3method(deviance, gmsar) # deprecated
256S3method(coef, gmsar) # deprecated
257S3method(fitted, gmsar) # deprecated
258S3method(print, gmsar) # deprecated
259S3method(summary, gmsar) # deprecated
260S3method(Hausman.test, gmsar) # deprecated
261S3method(impacts, gmsar) # deprecated
262
263S3method(print, summary.gmsar) # deprecated
264
265S3method(fitted, SFResult) # deprecated
266S3method(print, SFResult) # deprecated
267S3method(fitted, ME_res) # deprecated
268S3method(print, ME_res) # deprecated
269
270S3method(residuals, stsls) # deprecated
271S3method(deviance, stsls) # deprecated
272S3method(coef, stsls) # deprecated
273S3method(print, stsls) # deprecated
274S3method(summary, stsls) # deprecated
275S3method(impacts, stsls) # deprecated
276
277S3method(print, summary.stsls) # deprecated
278
279S3method(print, lagImpact) # deprecated
280S3method(plot, lagImpact) # deprecated
281S3method(summary, lagImpact) # deprecated
282S3method(HPDinterval, lagImpact) # deprecated
283export(HPDinterval.lagImpact) # deprecated
284S3method(print, summary.lagImpact) # deprecated
285
286S3method(print, WXImpact) # deprecated
287S3method(summary, WXImpact) # deprecated
288S3method(print, summary.WXImpact) # deprecated
289
290S3method(print, lagmess) # deprecated
291S3method(summary, lagmess) # deprecated
292S3method(print, summary.lagmess) # deprecated
293S3method(residuals, lagmess) # deprecated
294S3method(deviance, lagmess) # deprecated
295S3method(coef, lagmess) # deprecated
296S3method(fitted, lagmess) # deprecated
297S3method(logLik, lagmess) # deprecated
298S3method(impacts, lagmess) # deprecated
299
300