Package: SSN2 0.2.1

Michael Dumelle

SSN2: Spatial Modeling on Stream Networks

Spatial statistical modeling and prediction for data on stream networks, including models based on in-stream distance (Ver Hoef, J.M. and Peterson, E.E., (2010) <doi:10.1198/jasa.2009.ap08248>.) Models are created using moving average constructions. Spatial linear models, including explanatory variables, can be fit with (restricted) maximum likelihood. Mapping and other graphical functions are included.

Authors:Michael Dumelle [aut, cre], Jay M. Ver Hoef [aut], Erin Peterson [aut], Alan Pearse [ctb], Dan Isaak [ctb]

SSN2_0.2.1.tar.gz
SSN2_0.2.1.zip(r-4.5)SSN2_0.2.1.zip(r-4.4)SSN2_0.2.1.zip(r-4.3)
SSN2_0.2.1.tgz(r-4.4-x86_64)SSN2_0.2.1.tgz(r-4.4-arm64)SSN2_0.2.1.tgz(r-4.3-x86_64)SSN2_0.2.1.tgz(r-4.3-arm64)
SSN2_0.2.1.tar.gz(r-4.5-noble)SSN2_0.2.1.tar.gz(r-4.4-noble)
SSN2_0.2.1.tgz(r-4.4-emscripten)SSN2_0.2.1.tgz(r-4.3-emscripten)
SSN2.pdf |SSN2.html
SSN2/json (API)
NEWS

# Install 'SSN2' in R:
install.packages('SSN2', repos = c('https://usepa.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/usepa/ssn2/issues

Datasets:
  • mf04p - Imported SSN object from the MiddleFork04.ssn data folder

On CRAN:

6.77 score 13 stars 2 packages 19 scripts 429 downloads 47 exports 37 dependencies

Last updated 3 months agofrom:ab39f126e2. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 27 2024
R-4.5-win-x86_64OKOct 27 2024
R-4.5-linux-x86_64OKOct 27 2024
R-4.4-win-x86_64OKOct 27 2024
R-4.4-mac-x86_64OKOct 27 2024
R-4.4-mac-aarch64OKOct 27 2024
R-4.3-win-x86_64OKOct 27 2024
R-4.3-mac-x86_64OKOct 27 2024
R-4.3-mac-aarch64OKOct 27 2024

Exports:AICcaugmentcopy_lsn_to_tempcovmatrixcreate_netgeomdispersion_initialdispersion_paramseuclid_initialeuclid_paramsglanceglancesloocvnugget_initialnugget_paramspseudoR2randcov_initialrandcov_paramsssn_create_distmatssn_get_datassn_get_netgeomssn_get_stream_distmatssn_glmssn_importssn_import_predptsssn_lmssn_namesssn_put_datassn_rbetassn_rbinomssn_rgammassn_rinvgaussssn_rnbinomssn_rnormssn_rpoisssn_simulatessn_split_predptsssn_subsetSSN_to_SSN2ssn_update_pathssn_writetaildown_initialtaildown_paramstailup_initialtailup_paramstidyTorgegramvarcomp

Dependencies:bitbit64blobcachemclassclassIntclicpp11DBIe1071fansifastmapgenericsglueKernSmoothlatticelifecyclemagrittrMASSMatrixmemoisepillarpkgconfigplogrproxyRcpprlangRSQLites2sfspmodeltibbleunitsutf8vctrswithrwk

An Introduction to Spatial Stream Network Modeling in R Using SSN2

Rendered fromintroduction.Rmdusingknitr::rmarkdownon Oct 27 2024.

Last update: 2024-07-26
Started: 2023-10-20

Readme and manuals

Help Manual

Help pageTopics
Compute AIC and AICc of fitted model objectsAIC.SSN2 AIC.ssn_glm AIC.ssn_lm AICc.ssn_glm AICc.ssn_lm
Compute analysis of variance and likelihood ratio tests of fitted model objectsanova.SSN2 anova.ssn_glm anova.ssn_lm tidy.anova.ssn_glm tidy.anova.ssn_lm
Augment data with information from fitted model objectsaugment.SSN2 augment.ssn_glm augment.ssn_lm
Extract fitted model coefficientscoef.SSN2 coef.ssn_glm coef.ssn_lm coefficients.ssn_glm coefficients.ssn_lm
Confidence intervals for fitted model parametersconfint.SSN2 confint.ssn_glm confint.ssn_lm
Compute Cook's distancecooks.distance.SSN2 cooks.distance.ssn_glm cooks.distance.ssn_lm
Copy LSN to temporary directorycopy_lsn_to_temp
Create a covariance matrixcovmatrix.SSN2 covmatrix.ssn_glm covmatrix.ssn_lm
Create netgeom column in SSN objectcreate_netgeom
Fitted model deviancedeviance.SSN2 deviance.ssn_glm deviance.ssn_lm
Extract model fitted valuesfitted.SSN2 fitted.ssn_glm fitted.ssn_lm fitted.values.ssn_glm fitted.values.ssn_lm
Model formulaeformula.SSN2 formula.ssn_glm formula.ssn_lm
Glance at a fitted model objectglance.SSN2 glance.ssn_glm glance.ssn_lm
Glance at many fitted model objectsglances.SSN2 glances.ssn_glm glances.ssn_lm
Compute leverage (hat) valueshatvalues.SSN2 hatvalues.ssn_glm hatvalues.ssn_lm
Regression diagnosticsinfluence.SSN2 influence.ssn_glm influence.ssn_lm
Find labels from objectlabels.SSN2 labels.ssn_glm labels.ssn_lm
Extract log-likelihoodlogLik.SSN2 logLik.ssn_glm logLik.ssn_lm
Perform leave-one-out cross validationloocv.SSN2 loocv.ssn_glm loocv.ssn_lm
Imported SSN object from the MiddleFork04.ssn data foldermf04p
MiddleFork04.ssn: Middle Fork 2004 stream temperature datasetMiddleFork04.ssn
Extract the model frame from a fitted model objectmodel.frame.SSN2 model.frame.ssn_glm model.frame.ssn_lm
Extract the model matrix from a fitted model objectmodel.matrix.SSN2 model.matrix.ssn_glm model.matrix.ssn_lm
Plot fitted model diagnosticsplot.SSN2 plot.ssn_glm plot.ssn_lm
Plot Torgegramplot.Torgegram
Model predictions (Kriging)predict.SSN2 predict.ssn_glm predict.ssn_lm
Print SSN objectprint.SSN
Print valuesprint.anova.ssn_glm print.anova.ssn_lm print.SSN2 print.ssn_glm print.ssn_lm print.summary.ssn_glm print.summary.ssn_lm
Compute a pseudo r-squaredpseudoR2.SSN2 pseudoR2.ssn_glm pseudoR2.ssn_lm
Extract fitted model residualsresid.ssn_glm resid.ssn_lm residuals.SSN2 residuals.ssn_glm residuals.ssn_lm rstandard.ssn_glm rstandard.ssn_lm
Calculate Hydrologic Distances for an 'SSN' objectssn_create_distmat
Get a data.frame from an SSN, ssn_lm, or ssn_glm objectssn_get_data
Extract netgeom columnssn_get_netgeom
Get stream distance matrices from an 'SSN' objectssn_get_stream_distmat
Fitting Generalized Linear Models for Spatial Stream Networksssn_glm
Import 'SSN' objectssn_import
Import prediction points into an SSN, ssn_lm, or ssn_glm objectssn_import_predpts
Create a covariance parameter initial objecteuclid_initial nugget_initial ssn_initial taildown_initial tailup_initial
Fitting Linear Models for Spatial Stream Networksssn_lm
Return names of data in an SSN objectssn_names
Create covariance parameter objects.euclid_params nugget_params ssn_params taildown_params tailup_params
Put an sf data.frame in an SSN objectssn_put_data
Simulate random variables on a stream networkssn_rbeta ssn_rbinom ssn_rgamma ssn_rinvgauss ssn_rnbinom ssn_rnorm ssn_rpois ssn_simulate
Split a prediction dataset in an 'SSN' objectssn_split_predpts
Subset an 'SSN' objectssn_subset
Convert object from 'SpatialStreamNetwork' class to 'SSN' classSSN_to_SSN2
Update path in an SSN objectssn_update_path
write an SSN objectssn_write
Summarize an SSN objectsummary.SSN
Summarize a fitted model objectsummary.SSN2 summary.ssn_glm summary.ssn_lm
Tidy a fitted model objecttidy.SSN2 tidy.ssn_glm tidy.ssn_lm
Compute the empirical semivariogramTorgegram
Variability component comparisonvarcomp.SSN2 varcomp.ssn_glm varcomp.ssn_lm
Calculate variance-covariance matrix for a fitted model objectvcov.SSN2 vcov.ssn_glm vcov.ssn_lm