sleev
sleev: An R Package for Semiparametric Likelihood Estimation with Errors in Variables - Published in JOSS (2025)
Science Score: 87.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 14 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org -
○Academic email domains
-
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Scientific Fields
Materials Science
Physical Sciences -
40% confidence
Last synced: 4 months ago
·
JSON representation
Repository
Combination of logreg2ph and TwoPhaseReg
Basic Info
- Host: GitHub
- Owner: dragontaoran
- License: gpl-3.0
- Language: R
- Default Branch: main
- Size: 11.7 MB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
- Releases: 0
Fork of Epic-Doughnut/sleev
Created almost 4 years ago
· Last pushed 4 months ago
https://github.com/dragontaoran/sleev/blob/main/
![]()
SLEEV: Semiparametric Likelihood Estimation with Errors in Variables
License: file `/inst/LICENSE_sleev.txt` Markdown: [](https://doi.org/10.21105/joss.07320) HTML:reStructuredText: .. image:: https://joss.theoj.org/papers/10.21105/joss.07320/status.svg :target: https://doi.org/10.21105/joss.07320 The complete R package `logreg2ph` and code for the simulation settings included in [this paper](https://doi.org/10.1111/biom.13512). Part of the R package `TwoPhaseReg` as described in [this paper](https://doi.org/10.1002/sim.8876). If you wish to make suggestions, report a problem, or need more support with package use, please email Dr. Ran Tao (r DOT tao AT vumc DOT org) or Dr. Sarah Lotspeich (lotspes AT wfu DOT edu). Below is a simple example for running a linear regression with `sleev`. The complete vignette detailing all uses of example in `sleev` can be found as an [article](https://github.com/dragontaoran/sleev/blob/main/inst/article/sleev_vignette.pdf). ### Install To install the package for GitHub, run the following in your `R` console: ```{r} devtools::install_github("dragontaoran/sleev") ``` or install from CRAN: ``` install.packages("sleev") ``` Load package: ```{r} library(sleev) ``` ### `mock.vccc` data This data is a simulated two-phase sampling dataset based on VCCC data. To load this dataset, run: ```{r} data(mock.vccc) ``` ### Preprocessing Because of skewness, we often transform both CD4 and VL. In our analysis, CD4 was divided by 10 and square-root transformed and VL was log_10 transformed: ``` mock.vccc$CD4_val_sq10 <- sqrt(mock.vccc$CD4_val/10) mock.vccc$CD4_unval_sq10 <- sqrt(mock.vccc$CD4_unval/10) mock.vccc$VL_val_l10 <- log10(mock.vccc$VL_val) mock.vccc$VL_unval_l10 <- log10(mock.vccc$VL_unval) ``` Load `splines` package ``` library(splines) ``` ### Construct B-spline Basis ``` sn=20 data.linear <- spline2ph(x = "VL_unval_l10", data = mock.vccc, size = sn, degree = 3, group = "Sex") ``` ### Model fitting The SMLEs can be obtained by running ``` res_linear <- linear2ph(y_unval = "CD4_unval_sq10", y = "CD4_val_sq10", x_unval = "VL_unval_l10",x = "VL_val_l10",z = "Sex", b_spline = paste0("bs", 1:sn), data = data.linear, hn_scale = 1, se = TRUE, tol = 1e-04, max_iter = 1000, verbose = FALSE) ``` Check convergence: ``` c(res_linear$converge, res_linear$converge_cov) ```
Owner
- Name: Ran Tao
- Login: dragontaoran
- Kind: user
- Location: Nashville, TN
- Company: Vanderbilt University Medical Center
- Website: https://sites.google.com/site/dragontaoran/
- Twitter: dragontaoran
- Repositories: 1
- Profile: https://github.com/dragontaoran
Assistant Professor, Department of Biostatistics and Vanderbilt Genetics Institute, Vanderbilt University Medical Center
JOSS Publication
sleev: An R Package for Semiparametric Likelihood Estimation with Errors in Variables
Published
August 05, 2025
Volume 10, Issue 112, Page 7320
Authors
Tags
measurement error two-phase sampling nonparametric statistics B-splinesGitHub Events
Total
- Delete event: 3
- Push event: 115
- Pull request event: 3
- Create event: 5
Last Year
- Delete event: 3
- Push event: 115
- Pull request event: 3
- Create event: 5
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 0
- Total pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: 3 minutes
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 2
- Average time to close issues: N/A
- Average time to close pull requests: 3 minutes
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- jbytecode (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 295 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 10
- Total maintainers: 1
cran.r-project.org: sleev
Semiparametric Likelihood Estimation with Errors in Variables
- Homepage: https://github.com/dragontaoran/sleev
- Documentation: http://cran.r-project.org/web/packages/sleev/sleev.pdf
- License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
-
Latest release: 1.1.4
published 6 months ago
Rankings
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Average: 48.2%
Downloads: 79.3%
Maintainers (1)
Last synced:
4 months ago
