Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 1 DOI reference(s) in README -
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.2%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: yaziciceyda
- License: gpl-2.0
- Language: R
- Default Branch: main
- Size: 408 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
cmaRs
Welcome to cmaRs, an R package for Conic Multivariate Adaptive Regression (CMARS).
Description
An implementation of 'Conic Multivariate Adaptive Regression Splines (CMARS)' in R. Please check Weber, et al. (2011) CMARS: a new contribution to nonparametric regression with multivariate adaptive regression splines supported by continuous optimization. Inverse Problems in Science and Engineering, 2012, 20.3: 371-400. doi:10.1080/17415977.2011.62477, for more details. It constructs models by using the terms obtained from the forward step of MARS and then estimates parameters by using 'Tikhonov' regularization and conic quadratic optimization. It is possible to construct models for prediction and binary classification. It provides performance measures for the model developed.
Installation
In order to construct CMARS models, both MOSEK software and Rmosek package needed. Please follow carefully the steps available in https://docs.mosek.com/latest/rmosek/install-interface.html for successful installation.
r
library(cmaRs)
Inputs
- formula: description of the model
- degree: maximum degree of interaction
- nk: maximum number of model terms before pruning
- data: data frame
- classification: binary variable indicating whether the model is for prediction or binary classification
- threshold.class: the threshold value that is used to convert probabilities to classes in binary classification models.
Prediction Example
cmaRs can construct prediction models which is exemplified below.
{r echo=TRUE, results='hide', eval=FALSE}
prediction.model <- cmaRs(Volume ~ ., degree = 2, nk = 20, data = trees)
summary(prediction.model)
Some performance measures are also printed at the end of the output. For instance, the $R^2$ , r and RSS values are given for the prediction models. It is also possible to construct several graphs of a prediction model with the plot function.
Classification Example
In addition to prediction modeling, it is also possible to construct binary classification models.
{r echo=TRUE, results='hide', eval=FALSE}
library(earth)
classification.model <- cmaRs(survived ~ age, nk = 35, classification = TRUE, data = etitanic)
summary(classification.model)
Note that, the classification argument is set as TRUE here which indicates a binary classification model. Moreover, the degree argument is used as 1 which is its default value indicating a main effect model. This model is constructed by using only continuous variable in the data set, age. Similar to the previous example, the summary function presents the details of the model.
Licensing
cmaRs is licensed for public/open source use under the GNU General Public License, Version 2 (GPLv2).
Owner
- Login: yaziciceyda
- Kind: user
- Repositories: 4
- Profile: https://github.com/yaziciceyda
GitHub Events
Total
Last Year
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| yazicicedya | c****6@g****m | 13 |
| yaziciceyda | 7****a | 1 |
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total 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
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
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 227 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 1
cran.r-project.org: cmaRs
Implementation of the Conic Multivariate Adaptive Regression Splines in R
- Documentation: http://cran.r-project.org/web/packages/cmaRs/cmaRs.pdf
- License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
-
Latest release: 0.1.3
published almost 3 years ago
Rankings
Maintainers (1)
Dependencies
- AUC * imports
- MPV * imports
- Matrix * imports
- ROCR * imports
- Rmosek * imports
- Ryacas0 * imports
- earth * imports
- graphics * imports
- stats * imports
- stringr * imports
- utils * imports
- knitr * suggests
- rmarkdown * suggests
- testthat >= 3.0.0 suggests