Skip to content

Commit

Permalink
version 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zheyuan Li authored and cran-robot committed Apr 30, 2023
1 parent d1c55db commit 6788766
Show file tree
Hide file tree
Showing 30 changed files with 2,626 additions and 633 deletions.
16 changes: 8 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
Package: gps
Version: 1.0
Date: 2022-01-27
Version: 1.1
Date: 2023-04-29
Title: General P-Splines
Authors@R: c(person("Zheyuan", "Li", role = c("aut", "cre"),
email = "zheyuan.li@bath.edu",
comment = c(ORCID = "0000-0002-7434-5947")))
Authors@R: person("Zheyuan", "Li", role = c("aut", "cre"),
email = "zheyuan.li@bath.edu",
comment = c(ORCID = "0000-0002-7434-5947"))
Author: Zheyuan Li [aut, cre] (<https://orcid.org/0000-0002-7434-5947>)
Maintainer: Zheyuan Li <zheyuan.li@bath.edu>
Depends: R (>= 4.0.0)
Imports: stats, splines, Matrix, methods, graphics, grDevices
Description: Routines to construct general P-splines for non-uniform B-splines on arbitrary knots, proposed by Li and Cao (2022) <arXiv:2201.06808>. This P-spline variant extends the standard P-splines of Eilers and Marx (1996) <doi:10.1214/ss/1038425655> that are tailored for uniform B-splines on equidistant knots. Includes SparseD() for computing general difference matrices, SparseS() for computing derivative penalty matrix or its sparse root using a sandwich formula, etc. Also includes several demos on B-splines and P-splines. Aims to facilitate other packages to implement general P-splines as a smoothing tool in their model estimation framework.
Description: General P-splines are non-uniform B-splines penalized by a general difference penalty, proposed by Li and Cao (2022) <arXiv:2201.06808>. Constructible on arbitrary knots, they extend the standard P-splines of Eilers and Marx (1996) <doi:10.1214/ss/1038425655>. They are also related to the O-splines of O'Sullivan (1986) <doi:10.1214/ss/1177013525> via a sandwich formula that links a general difference penalty to a derivative penalty. The package includes routines for setting up and handling difference and derivative penalties. It also fits P-splines and O-splines to (x, y) data (optionally weighted) for a grid of smoothing parameter values in the automatic search intervals of Li and Cao (2023) <doi:10.1007/s11222-022-10178-z>. It aims to facilitate other packages to implement P-splines or O-splines as a smoothing tool in their model estimation framework.
License: GPL-3
NeedsCompilation: yes
URL: https://github.com/ZheyuanLi/gps
Packaged: 2022-01-26 20:28:19 UTC; lzy
Packaged: 2023-04-29 10:35:33 UTC; lzy
Repository: CRAN
Date/Publication: 2022-01-27 19:40:06 UTC
Date/Publication: 2023-04-30 16:20:02 UTC
42 changes: 23 additions & 19 deletions MD5
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
2bbd671c28cc16edb68927869ae8204f *DESCRIPTION
19145f695cb2274dd22c2cddc37dd32f *NAMESPACE
4bb48dea27b1dfcc59967e92ba7bd0c6 *R/gps.R
9ac087f40366e0b08df2e882f5b606d9 *man/DemoBS.Rd
b89153d0c39381c041a3ca60f24d9200 *man/DemoKnots.Rd
0d93485ecf4615653fb4600d4fde3d1c *man/DemoNull.Rd
95ce4d8979de34093caf8f925f60919b *man/DemoPBS.Rd
3e6fb93fbdc7c2433ab82f73650e0ba1 *man/DiffCoef.Rd
d17d7762d243096a3c275732a61d73ab *man/MakeGrid.Rd
503daf8a78a4b29b23126595cde1ed59 *man/NullD.Rd
c3799b4ee36e96f40f2bbae1b034228d *man/PlaceKnots.Rd
8d78e82726ebf1402a57a44073dd0e23 *man/SparseD.Rd
24abfa9624ec97dbacb07029b6b06978 *man/SparseS.Rd
83776be32f236dff3a95f3283bb0263f *man/btSb.Rd
b08e00a0a55db80c0c5202dc209008cf *man/pbsDesign.Rd
1fcb7e1a2c61c8206696371de50204dd *src/Dmat.c
405ae2c17e75a50052f9f81f1abb5a87 *DESCRIPTION
f4ac7d5009bc521557221a0d23beed12 *NAMESPACE
75467fd6e9bc138cdd72921fe1476e96 *R/gps.R
439bf689fa27cf9affd0335332142165 *build/partial.rdb
5da8548b7a8f08da85a31f4b9c183a12 *man/DemoBS.Rd
336702ad3a5c5916e4c2aedc28d0d6d7 *man/DemoKnots.Rd
079cdc652c9b3f68686d11d49644570f *man/DemoNull.Rd
47086e65d54402897ab29f6223c26f45 *man/DemoPBS.Rd
fa650047d683e03f92c7ddb35ecc644f *man/DemoSpl.Rd
3195441c252b8c6e37a957299c29ebeb *man/GramBS.Rd
c3fa3a206b242861831b17d2f7d34d7b *man/MakeGrid.Rd
5f17632f392f253750bca5cc3cc61dfe *man/PlaceKnots.Rd
15536b9e6c88fe7eefb4725329b243cc *man/gps2GS.Rd
6b800c2223a31e8a8528032826382b0a *man/penalty.Rd
cde127621f6fe75a7c7754f55a690155 *man/penutils.Rd
b4817c6ed64e16e6d46a4fef43d5f4a6 *man/periodic.Rd
4d0a21b0bcaff7c7af4a880c19aa2a8d *src/Dmat.c
2a6f9e9e044a78154d3cfda5936d6f48 *src/Makevars
183552db0c08f2badd15bf97c922045e *src/base.h
a851c1e837751f8f58acde1896f45397 *src/bspl.c
31002918836ac525214f783b400eec27 *src/init.c
42af352bd93ce59823d8c767f6ad8c2d *src/band.c
e7d29ee9459fbeb8eb2852fc9de84ef5 *src/base.c
461270b3e627b3bf57c4fb2cb1ef26a9 *src/base.h
1772c8a9ab3310a7379d633e0fccc46a *src/bspl.c
521558566269e5d10da5a0540779f96e *src/gps2.c
edfc4e4ff1e80d2878d74c46e505128c *src/init.c
11 changes: 7 additions & 4 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
useDynLib(gps, .registration = TRUE)

export(MakeGrid, PlaceKnots, DemoKnots, DemoBS,
SparseD, NullD, DemoNull, DiffCoef, SparseS, btSb,
pbsDesign, SparsePD, DemoPBS)
export(MakeGrid, PlaceKnots, DemoKnots, DemoBS, DemoSpl,
SparseD, DemoNull, DiffCoef,
GramBS, btSb,
PriorCoef, MPinv,
pbsDesign, SparsePD, DemoPBS,
gps2GS, DemoRhoLim)

import(stats)
importFrom(splines, splineDesign)
importFrom(Matrix, crossprod, bandSparse)
importFrom(Matrix, crossprod)
importFrom(methods, new)
importFrom(graphics, plot.default, points.default, lines.default,
abline, matplot, matlines, par, segments, text.default, mtext, polygon, title)
Expand Down

0 comments on commit 6788766

Please sign in to comment.