cpr

Control Polygon Reduction: Methods for quick and efficient placement of internal knots for B-splines and tensor products of B-splines.

https://github.com/dewittpe/cpr

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    2 of 3 committers (66.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.7%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Control Polygon Reduction: Methods for quick and efficient placement of internal knots for B-splines and tensor products of B-splines.

Basic Info
Statistics
  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • Open Issues: 8
  • Releases: 0
Created almost 10 years ago · Last pushed almost 2 years ago
Metadata Files
Readme Changelog

README.md

cpr: Control Polygon Reduction

Project Status: Active – The project has reached a stable, usable state and is being actively developed. R-CMD-check Coverage Status CRAN_Status_Badge CRAN RStudio mirror downloads

An R package for implementing the Control Polygon Reduction model selection method. When we are tasked with modeling the functional relationship between a response and a continuous predictor, i.e., y = f(x), CPR allows for quick and efficient searching of a large model space to find B-spline estimates of the function f(x).

CPR extends to multiple dimensions and allows one to find good locations for knots in a tensor product of B-splines.

Learn More About CPR.

This model selection method was developed as part of Peter DeWitt's PhD dissertation work. It has been extended since.

Vignettes

There are two vignettes within the package r vignettes(topic = 'cpr', package = 'cpr') vignettes(topic = 'cnr', package = 'cpr')

You can also read these on package website

Related Publications:

  • The CPR method was presented at the 28th International Biometric Conference held July 2016, in Victoria, British Columbia, Canada. The abstract, paper, and talk had the title: "Parsimonious B-splines Regression Models via Control Polygon Reduction." A bibtex entry for the abstract:

@inproceedings{, author = {DeWitt, Peter E. and Carlson, Nichole E. and Samantha MaWhinney}, title = {Parsimonious B-spline Regression Models via Control Polygon Reduction}, booktitle = {Abstracts for the XXVIIIth International Biometric Conference}, month = {July}, year = {2016}, organization = {International Biometric Society}, address = {Victoria, British Columbia}, isbn = {978-0-9821919-4-1} }

Awards: The presentation of the work earned Peter DeWitt two awards:

  1. "Best Student Oral Presentation" from the International Biometric Society (IBS).
  2. "Distinguished Oral Presentation" as part of the student paper competition hosted by the Western North American Region (WNAR) of the IBS.

Installing CPR

Released Version

Install from the Comprehensive R Archive Network (CRAN)

```r

within R

install.packages("cpr", repos = "https://cran.rstudio.com") ```

Developmental Version

If you are working on a Windows machine you will need to have Rtools installed.

From github

This will require you to have remotes package installed.

```r

Just the package without the manual and without vignettes

remotes::install_github(repo = "dewittpe/cpr")

Install with vignettes

remotes::installgithub( repo = "dewittpe/cpr" , dependbuildvignettes = TRUE , dependencies = TRUE ) ```

From a cloned repository

You'll need to have the R package devtools installed on your machine.

To check R dependencies before building, or after you get errors due to missing R packages run: r devtools::install_dev_deps()

To build the R package and install the dev version on you machine:

bash make install

Alternatively, you should be able to build and install without make bash R CMD build <path to cloned repo> R CMD INSTALL cpr_<version>.tar.gz

Other Notes:

The cpr package provides 3D graphics via the rgl package. If you are get an error, or rather message, of the form: font family "sans" not found, using "bitmap" Then there is an easy fix. You need to get the FreeType 2 font engine.

On Debian, you can get the library via:

bash apt-get install libfreetype6-dev

Once the FreeType 2 font engine has been installed on your computer you must reinstall the rgl package.

Owner

  • Name: Peter DeWitt
  • Login: dewittpe
  • Kind: user
  • Location: Colorado, USA
  • Company: University of Colorado Anschutz Medical Campus

Ph.D. Biostatistician, R Enthusiast.

GitHub Events

Total
Last Year

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 654
  • Total Committers: 3
  • Avg Commits per committer: 218.0
  • Development Distribution Score (DDS): 0.511
Past Year
  • Commits: 217
  • Committers: 1
  • Avg Commits per committer: 217.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Peter DeWitt p****t@c****u 320
Peter DeWitt (optiplex) p****t@u****u 243
Peter DeWitt (inspiron-5323) d****e@g****m 91
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 51
  • Total pull requests: 10
  • Average time to close issues: about 1 year
  • Average time to close pull requests: about 21 hours
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.76
  • Average comments per pull request: 0.4
  • Merged pull requests: 10
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • dewittpe (49)
Pull Request Authors
  • dewittpe (13)
Top Labels
Issue Labels
enhancement (36) bug (15) wontfix (3) documentation (3) question (1) duplicate (1)
Pull Request Labels
enhancement (2)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 275 last-month
  • Total dependent packages: 1
  • Total dependent repositories: 2
  • Total versions: 3
  • Total maintainers: 1
cran.r-project.org: cpr

Control Polygon Reduction

  • Versions: 3
  • Dependent Packages: 1
  • Dependent Repositories: 2
  • Downloads: 275 Last month
Rankings
Dependent packages count: 18.1%
Dependent repos count: 19.1%
Average: 24.4%
Forks count: 27.8%
Stargazers count: 27.8%
Downloads: 29.0%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • Rcpp >= 0.12.13 imports
  • ggplot2 >= 2.2.0 imports
  • lme4 * imports
  • plot3D * imports
  • scales * imports
  • covr * suggests
  • knitr * suggests
  • qwraps2 * suggests
  • rgl * suggests
  • rmarkdown * suggests
  • testthat * suggests
.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
  • r-lib/actions/setup-tinytex v2 composite
.github/workflows/test-coverage.yaml actions
  • actions/checkout v4 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite