cpr
Control Polygon Reduction: Methods for quick and efficient placement of internal knots for B-splines and tensor products of B-splines.
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
Repository
Control Polygon Reduction: Methods for quick and efficient placement of internal knots for B-splines and tensor products of B-splines.
Basic Info
- Host: GitHub
- Owner: dewittpe
- Language: R
- Default Branch: main
- Homepage: http://www.peteredewitt.com/cpr/
- Size: 36.7 MB
Statistics
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 8
- Releases: 0
Metadata Files
README.md
cpr: Control Polygon Reduction 
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:
- "Best Student Oral Presentation" from the International Biometric Society (IBS).
- "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
- Website: peteredewitt.com
- Repositories: 85
- Profile: https://github.com/dewittpe
Ph.D. Biostatistician, R Enthusiast.
GitHub Events
Total
Last Year
Committers
Last synced: about 2 years ago
Top Committers
| Name | 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
Pull Request Labels
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
- Homepage: https://github.com/dewittpe/cpr/
- Documentation: http://cran.r-project.org/web/packages/cpr/cpr.pdf
- License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
-
Latest release: 0.4.0
published over 2 years ago
Rankings
Maintainers (1)
Dependencies
- 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
- 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
- actions/checkout v4 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite