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 2 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.0%) to scientific vocabulary
Last synced: 9 months ago
·
JSON representation
Repository
Implementation of the Lind/Mehlum utest
Basic Info
Statistics
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Created over 6 years ago
· Last pushed 11 months ago
https://github.com/jotlind/utest/blob/master/
# Implementation of the Lind/Mehlum utest
To test for a U shaped or inverse U shaped relationship, it is necessary to provide an interval where the shape is located. A U shaped relationship is downward sloping at the lower bound and upward sloping at the upper bound, and vice versa for an inverted U shape. This package provides a joint test of the two slopes.
See Lind and Mehlum: [With or Without U? The Appropriate Test for a UShaped Relationship](https://doi.org/10.1111/j.1468-0084.2009.00569.x) for details
## Installation
## Implementation for R
To install the R package from this repository (assuming `devtools` is installed)
```
devtools::install_github('https://github.com/jotlind/utest')
```
## Implementation for Stata
To install the Stata package from SSC
```
ssc install utest
```
## Running the package in R
Set up data
```
x <- runif(100,min=-1,max=1)
xsq <- x^2
y <- x^2+rnorm(100)
mod <- lm(y~x+xsq)
```
Run the U test
```
utest(mod,c("x","xsq"))
```
Get details on the slope of the relationship at the boundaries
```
uslopes(mod,~x+xsq)
```
## Authors
- [Jo Thori Lind](mailto:j.t.lind@econ.uio.no)
- [Halvor Mehlum](mailto:halvor.mehlum@econ.uio.no)
## License
[](http://badges.mit-license.org)
- **[MIT license](http://opensource.org/licenses/mit-license.php)**
- Copyright 2020 Jo Thori Lind and Halvor Mehlum.
Owner
- Name: Jo Thori Lind
- Login: jotlind
- Kind: user
- Location: Oslo, Norway
- Company: University of Oslo
- Website: https://sites.google.com/view/jo-thori-lind/home
- Repositories: 1
- Profile: https://github.com/jotlind
GitHub Events
Total
Last Year
Packages
- Total packages: 1
- Total downloads: unknown
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: utest
Lind/Mehlum Utest
- Homepage: https://github.com/jotlind/utest
- Documentation: http://cran.r-project.org/web/packages/utest/utest.pdf
- License: MIT + file LICENSE
-
Latest release: 0.4.0
published 10 months ago
Rankings
Dependent packages count: 25.7%
Dependent repos count: 31.5%
Average: 47.5%
Downloads: 85.4%
Maintainers (1)
Last synced:
10 months ago