https://github.com/alexander-pastukhov/tridim-regression
Package to calculate the bi/tri-dimensional regression between two 2D/3D configurations.
Science Score: 20.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
-
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
1 of 3 committers (33.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.9%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
Package to calculate the bi/tri-dimensional regression between two 2D/3D configurations.
Basic Info
- Host: GitHub
- Owner: alexander-pastukhov
- License: other
- Language: C++
- Default Branch: master
- Homepage: https://alexander-pastukhov.github.io/tridim-regression
- Size: 8.51 MB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
- Releases: 0
Topics
Metadata Files
README.md
TriDimRegression
Package to calculate the bidimensional and tridimensional regression between two 2D/3D configurations.
Installation
From CRAN
{r}
install.packages("TriDimRegression")
From Github
library("devtools");
install_github("alexander-pastukhov/tridim-regression", dependencies=TRUE)
If you want vignettes, use
devtools::install_github("alexander-pastukhov/tridim-regression",
dependencies=TRUE,
build_vignettes = TRUE)
Using TriDimRegression
You can call the main function either via a formula that specifies dependent and independent variables with the data table or by supplying two tables one containing all independent variables and one containing all dependent variables. The former call is
euc2 <- fit_transformation(depV1 + depV2 ~ indepV1 + indepV2, NakayaData, 'euclidean')
whereas the latter is
euc3 <- fit_transformation_df(Face3D_W070, Face3D_W097, transformation ='translation')
See also vignette("calibration", package="TriDimRegression") for an example of using TriDimRegression for 2D eye gaze data and vignette("comparing_faces", package="TriDimRegression") for an example of working with 3D facial landmarks data.
For the 2D data, you can fit "translation" (2 parameters for translation only), "euclidean"
(4 parameters: 2 for translation, 1 for scaling, and 1 for rotation), "affine" (6 parameters: 2 for translation and 4 that jointly describe scaling, rotation and sheer), or "projective" (8 parameters: affine plus 2 additional parameters to account for projection). For 3D data, you can fit "translation" (3 for translation only), "euclidean_x", "euclidean_y", "euclidean_z" (5 parameters: 3 for translation scale, 1 for rotation, and 1 for scaling), "affine" (12 parameters: 3 for translation and 9 to account for scaling, rotation, and sheer), and "projective" (15 parameters: affine plus 3 additional parameters to account for projection). transformations. For details on how matrices are constructed, see vignette("transformation_matrices", package="TriDimRegression").
Once the data is fitted, you can extract the transformation coefficients via coef() function and the matrix itself via transformation_matrix(). Predicted data, either based on the original data or on the new data, can be generated via predict(). Bayesian R-squared can be computed with or without adjustment via R2() function. In all three cases, you have choice between summary (mean + specified quantiles) or full posterior samples. loo() and waic() provide corresponding measures that can be used for comparison via loo::loo_compare() function.
References
- Tobler, W. R. (1965). Computation of the corresponding of geographical patterns. Papers of the Regional Science Association, 15, 131-139.
- Tobler, W. R. (1966). Medieval distortions: Projections of ancient maps. Annals of the Association of American Geographers, 56(2), 351-360.
- Tobler, W. R. (1994). Bidimensional regression. Geographical Analysis, 26(3), 187-212.
- Friedman, A., & Kohler, B. (2003). Bidimensional regression: Assessing the configural similarity and accuracy of cognitive maps and other two-dimensional data sets. Psychological Methods, 8(4), 468-491.
- Nakaya, T. (1997). Statistical inferences in bidimensional regression models. Geographical Analysis, 29(2), 169-186.
- Waterman, S., & Gordon, D. (1984). A quantitative-comparative approach to analysis of distortion in mental maps. Professional Geographer, 36(3), 326-337.
License
All code is licensed under the GPL 3.0 license.
Owner
- Name: Alexander (Sasha) Pastukhov
- Login: alexander-pastukhov
- Kind: user
- Location: Bamberg, Germany
- Company: Otto-Friedrich-Universität Bamberg
- Website: https://alexander-pastukhov.github.io/
- Twitter: PastukhovSasha
- Repositories: 6
- Profile: https://github.com/alexander-pastukhov
GitHub Events
Total
Last Year
Committers
Last synced: almost 3 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Alexander (Sasha) Pastukhov | a****v@u****e | 214 |
| Alexander Pastukhov | p****r@g****m | 18 |
| Andrew Johnson | a****n@a****m | 2 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 12 months ago
All Time
- Total issues: 1
- Total pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: 1 day
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 1.0
- Merged pull requests: 1
- 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
- b-rodrigues (1)
Pull Request Authors
- andrjohns (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 255 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 3
- Total maintainers: 1
cran.r-project.org: TriDimRegression
Bayesian Statistics for 2D/3D Transformations
- Homepage: https://github.com/alexander-pastukhov/tridim-regression
- Documentation: http://cran.r-project.org/web/packages/TriDimRegression/TriDimRegression.pdf
- License: GPL-3
-
Latest release: 1.0.2
published almost 3 years ago
Rankings
Maintainers (1)
Dependencies
- R >= 3.5.0 depends
- loo * depends
- Formula * imports
- Rcpp >= 0.12.0 imports
- RcppParallel >= 5.0.1 imports
- bayesplot * imports
- dplyr * imports
- future * imports
- glue * imports
- methods * imports
- purrr * imports
- rstan >= 2.18.1 imports
- rstantools >= 2.1.1 imports
- tidyr * imports
- ggplot2 * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests