Package: hero 0.6

hero: Spatio-Temporal (Hero) Sandwich Smoother

An implementation of the sandwich smoother proposed in Fast Bivariate Penalized Splines by Xiao et al. (2012) <doi:10.1111/rssb.12007>. A hero is a specific type of sandwich. Dictionary.com (2018) <https://www.dictionary.com> describes a hero as: a large sandwich, usually consisting of a small loaf of bread or long roll cut in half lengthwise and containing a variety of ingredients, as meat, cheese, lettuce, and tomatoes. Also implements the spatio-temporal sandwich smoother of French and Kokoszka (2021) <doi:10.1016/j.spasta.2020.100413>.

Authors:Joshua French

hero_0.6.tar.gz
hero_0.6.zip(r-4.5)hero_0.6.zip(r-4.4)hero_0.6.zip(r-4.3)
hero_0.6.tgz(r-4.4-any)hero_0.6.tgz(r-4.3-any)
hero_0.6.tar.gz(r-4.5-noble)hero_0.6.tar.gz(r-4.4-noble)
hero_0.6.tgz(r-4.4-emscripten)hero_0.6.tgz(r-4.3-emscripten)
hero.pdf |hero.html
hero/json (API)

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

Peer review:

Datasets:
  • lat - Computer-generated temperature data
  • lon - Computer-generated temperature data
  • lunoisyf1 - Data for f1 function from Lu et al.
  • lutruef1 - Data for f1 function from Lu et al.
  • tasmax - Computer-generated temperature data
  • wrfg_cgcm3_tasmax - Computer-generated temperature data
  • wrfg_lat - Computer-generated temperature data
  • wrfg_lon - Computer-generated temperature data
  • x - Data for f1 function from Lu et al.
  • z - Data for f1 function from Lu et al.

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

1.70 score 6 scripts 160 downloads 51 exports 26 dependencies

Last updated 1 years agofrom:6608b2b495. Checks:OK: 2 NOTE: 5. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 04 2024
R-4.5-winNOTENov 04 2024
R-4.5-linuxNOTENov 04 2024
R-4.4-winNOTENov 04 2024
R-4.4-macNOTENov 04 2024
R-4.3-winOKNov 04 2024
R-4.3-macNOTENov 04 2024

Exports:adjacentas_starrayas_stsas.starrayas.stsassembleborder_gridborder.gridborderGridBorderGridbsplinecirculateconnectcreate.prepared_listdefault.evalargsdefault.splinesdiffpenenhanceenhance.gridenlargegenerate_data2dgenerate_data3dgenerate.data2dgenerate.data3dgenerateData2dGenerateData2dgenerateData3dGenerateData3dheroknot_designknot.designknotDesignKnotDesignkronecker_seqkronecker.seqkroneckerSeqKroneckerSeqloglambda2gcvpoly2SpatialPolygonsprecomputeprepareprepare_sequentialradsplinerhrh_seqrh.seqrhSeqRhSeqspdiffpenstarraysts

Dependencies:classclassIntDBIdotCall64e1071fieldsKernSmoothlatticemagrittrmapsMASSMatrixnloptrnumDerivoptimxpbapplypracmaproxyRcpps2sfspspamunitsviridisLitewk

Readme and manuals

Help Manual

Help pageTopics
Determine adjacent pointsadjacent
Convert array to 'starray'as.starray as_starray starray
Convert object to 'sts' classas.sts as_sts sts
Assemble spline ingredients for sandwich smoothassemble assemble.hero_bspline assemble.hero_radspline assemble.list
Construct border for gridborder.grid BorderGrid borderGrid border_grid
B-spline specificationbspline
Circulate values of a vectorcirculate
Connect 'hero_radsplines'connect
Manually create a 'prepared_list'create.prepared_list
Construct default 'evalargs'default.evalargs
Construct default splinesdefault.splines
P-spline difference penaltydiffpen
Enhance penalty valueenhance
Enhance penalty value using grid searchenhance.grid
Enlarge spatial domainenlarge
Generate 2d datagenerate.data2d GenerateData2d generateData2d generate_data2d
Generate 3d datagenerate.data3d GenerateData3d generateData3d generate_data3d
Construct a hero sandwich smootherhero hero.prepared_array hero.prepared_list hero.prepared_matrix hero.prepared_numeric hero.prepared_sequential hero.prepared_starray hero.prepared_sts
Design knot/breakpoint spacingknot.design KnotDesign knotDesign knot_design
A sequence of kronecker productskronecker.seq KroneckerSeq kroneckerSeq kronecker_seq
Determine GCV statisticloglambda2gcv
Data for f1 function from Lu et al. (2012)ludata lunoisyf1 lutruef1 x z
Plot a 'hero_adjacent' objectplot.hero_adjacent
Plot a 'hero_bspline' objectplot.hero_bspline
Plot a 'hero_enlarge' objectplot.hero_enlarge
Plot a 'hero' objectplot.hero_matrix plot.hero_numeric
Plot a 'hero_radspline'plot.hero_radspline
Convert simple polygon to a 'SpatialPolygons' objectpoly2SpatialPolygons
Precompute objectsprecompute
Predict method for 'hero' objectpredict.hero
Predict method for 'hero_bspline' objectpredict.hero_bspline
Predict method for a 'hero_radspline'predict.hero_radspline
Prepare data for sandwich smoothprepare
Sequentially prepare data for sandwich smoothprepare_sequential
Prepare data array for sandwich smoothprepare.array
Prepare data array for sandwich smoothprepare.list
Prepare data matrix for sandwich smoothprepare.matrix
Prepare data vector for sandwich smoothprepare.numeric
Prepare 'starray' for sandwich smoothprepare.starray
Prepare 'starray' for sandwich smoothprepare.sts
Radial basis spline specificationradspline
Rotated H-transformrh
Apply 'rh' sequentiallyrh.seq RhSeq rhSeq rh_seq
Spatial difference penaltyspdiffpen
Computer-generated temperature datalat lon tasmax
Computer-generated temperature datawrfg_cgcm3_tasmax wrfg_lat wrfg_lon