useDynLib(spdep)

importFrom(stats, model.matrix, model.response, aggregate)

importFrom(boot, boot)

import(spam)
import(Matrix)

export(EBImoran.mc, probmap, choynowski, EBest, EBlocal, LR.sarlm, 
	LR1.sarlm, Wald1.sarlm, airdist, card, rookcell, 
	queencell, mrc2vi, vi2mrc, cell2nb, n.comp.nb, diffnb,
	dnearneigh, droplinks, eigenw, errorsarlm, gabrielneigh, geary.test,
	geary, geary.mc, globalG.test, graph2nb, joincount.test, joincount.mc,
	joincount.multi, print.jcmulti,
	knearneigh, knn2nb, lagsarlm, listw2sn, sn2listw, read.gwt2nb,
	write.sn2gwt, lm.LMtests, lm.morantest, localG, localmoran, moran,
	moran.test, moran.mc, moran.plot, localmoran.sad, lm.morantest.sad,
	nb2listw, nb2mat, listw2mat, mat2listw, invIrM, invIrW, nbdists, nblag,
	nblag_cumul, poly2nb, read.gal, write.nb.gal, read.geoda, relativeneigh,
	soi.graph, sp.correlogram, sp.mantel.mc, set.spChkOption, chkIDs,
	get.spChkOption, spNamedVec, tri2nb,
	spweights.constants, lag.listw, listw2U, listw2star, is.symmetric.nb,
	sym.attr.nb, include.self, make.sym.nb, union.nb, intersect.nb,
	setdiff.nb, complement.nb, Szero, spdep, print.nb, summary.nb, 
	plot.nb, edit.nb, subset.nb, summary.listw, print.listw, subset.listw,
	plot.Gabriel, plot.relative, print.jclist, print.LMtestlist, 
	plot.mc.sim, as.data.frame.localmoransad, print.localmoransad, 
	summary.localmoransad, print.summary.localmoransad, print.moransad, 
	summary.moransad, print.summary.moransad, print.spcor, plot.spcor, 
	print.sarlm, summary.sarlm, residuals.sarlm, deviance.sarlm, 
	coef.sarlm, fitted.sarlm, logLik.sarlm, anova.sarlm, 
	predict.sarlm, print.summary.sarlm, print.sarlm.pred, bptest.sarlm,
	write.sn2dat, read.dat2listw, nb2blocknb, p.adjustSP,
#	asMatrixCsrListw, asMatrixCsrI, asMatrixCsrIrW, asListwMatrixCsr, 
	is.symmetric.glist, similar.listw, nb2lines, listw2lines, df2sn, 
	plot.listw, aggregate.nb)

export(spautolm, residuals.spautolm, deviance.spautolm, coef.spautolm, 
	fitted.spautolm, print.spautolm, summary.spautolm, LR1.spautolm, 
	logLik.spautolm, print.summary.spautolm, autocov_dist, GMerrorsar, 
	residuals.gmsar, deviance.gmsar, coef.gmsar, fitted.gmsar, 
	print.gmsar, summary.gmsar, LR1.gmsar, logLik.gmsar, 
	print.summary.gmsar, SpatialFiltering, print.SFResult, fitted.SFResult,
	ME, print.ME_res, fitted.ME_res, stsls, print.stsls, summary.stsls,
	print.summary.stsls, residuals.stsls, coef.stsls, deviance.stsls)

export(nb2WB, listw2WB, as_dgRMatrix_listw, as_dsTMatrix_listw, as_dsCMatrix_I,
	as_dsCMatrix_IrW, Jacobian_W)

export(lm.morantest.exact, print.moranex, localmoran.exact, localmoran.exact.alt, print.localmoranex, as.data.frame.localmoranex)

export(as.spam.listw)

export(mstree, nbcosts, nbcost, plot.mst, plot.skater, prunecost, ssw, prunemst, skater)

export(aple, aple.mc, aple.plot, localAple)

import(maptools)

S3method(print, nb)
S3method(summary, nb)
S3method(plot, nb)
S3method(edit, nb)
S3method(subset, nb)
S3method(aggregate, nb)

S3method(summary, listw)
S3method(print, listw)
S3method(plot, listw)
S3method(subset, listw)

S3method(plot, Gabriel)
S3method(plot, relative)

S3method(print, jclist)
S3method(print, jcmulti)
S3method(print, LMtestlist)
S3method(plot, mc.sim)

S3method(as.data.frame, localmoransad)
S3method(print, localmoransad)
S3method(summary, localmoransad)
S3method(print, summary.localmoransad)

S3method(print, moransad)
S3method(summary, moransad)
S3method(print, summary.moransad)

S3method(print, moranex)
S3method(print, localmoranex)
S3method(as.data.frame, localmoranex)

S3method(print, spcor)
S3method(plot, spcor)

S3method(print, sarlm)
S3method(summary, sarlm)
S3method(residuals, sarlm)
S3method(deviance, sarlm)
S3method(coef, sarlm)
#S3method(vcov, sarlm)
S3method(fitted, sarlm)
S3method(logLik, sarlm)
S3method(anova, sarlm)
S3method(predict, sarlm)

S3method(print, summary.sarlm)
S3method(print, sarlm.pred)

S3method(residuals, spautolm)
S3method(deviance, spautolm)
S3method(coef, spautolm)
S3method(fitted, spautolm)
S3method(print, spautolm)
S3method(summary, spautolm)
S3method(logLik, spautolm)

S3method(print, summary.spautolm)

S3method(residuals, gmsar)
S3method(deviance, gmsar)
S3method(coef, gmsar)
S3method(fitted, gmsar)
S3method(print, gmsar)
S3method(summary, gmsar)
S3method(logLik, gmsar)

S3method(print, summary.gmsar)

S3method(fitted, SFResult)
S3method(print, SFResult)
S3method(fitted, ME_res)
S3method(print, ME_res)

S3method(residuals, stsls)
S3method(deviance, stsls)
S3method(coef, stsls)
S3method(print, stsls)
S3method(summary, stsls)

S3method(print, summary.stsls)

S3method(plot, mst)
S3method(plot, skater)

