transportr
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
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (7.9%) to scientific vocabulary
Last synced: 9 months ago
·
JSON representation
Repository
Basic Info
- Host: GitHub
- Owner: nt-williams
- License: gpl-3.0
- Language: R
- Default Branch: main
- Size: 72.3 KB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Created over 1 year ago
· Last pushed over 1 year ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# transportr
## Installation
You can install the development version of transport from [GitHub](https://github.com/) with:
``` r
# install.packages("pak")
pak::pak("nt-williams/transportr")
```
## Example
```{r eval=FALSE}
library(transportr)
gendata <- function(n, A = NULL) {
W <- rbinom(n, 1, 0.5)
V <- rbinom(n, 1, 0.66)
Z <- rbinom(n, 1, 0.33)
if (is.null(A)) A <- rbinom(n, 1, 0.5)
S <- rbinom(n, 1, 0.4 + 0.5*W - 0.3*Z)
Yi <- rnorm(n, A + W + A*V + 2.5*A*Z, sqrt((0.1 + 0.8*W)^2))
Y <- ifelse(S == 1, Yi, NA_real_)
data.frame(W = W,
V = V,
Z = Z,
S = S,
A = A,
Y = Y,
Yi = Yi)
}
set.seed(123)
n <- 250
tmp <- gendata(n)
transport_ate(data = tmp,
trt = "A",
outcome = "Y",
covar = c("W", "V", "Z"),
pop = "S",
estimator = "collaborative",
folds = 1)
#> ══ Results from `transport_ate()` ═══════════════════════════════════════════════════════════════
#>
#> Estimate: 3.33
#> Std. error: 0.26
#> 95% Conf. int.: 2.81, 3.84
```
Owner
- Name: Nicholas Williams
- Login: nt-williams
- Kind: user
- Company: Columbia University
- Website: https://www.nicholastwilliams.com
- Twitter: nickWillyamz
- Repositories: 12
- Profile: https://github.com/nt-williams
Senior Data Analyst @ Columbia University Mailman School of Public Health & free-lance statistics software developer
GitHub Events
Total
- Push event: 3
Last Year
- Push event: 3
Packages
- Total packages: 1
-
Total downloads:
- cran 144 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
cran.r-project.org: transportr
Transporting Intervention Effects from One Population to Another
- Homepage: https://github.com/nt-williams/transportr
- Documentation: http://cran.r-project.org/web/packages/transportr/transportr.pdf
- License: GPL (≥ 3)
-
Latest release: 0.1.0
published over 1 year ago
Rankings
Dependent packages count: 27.2%
Dependent repos count: 33.5%
Average: 49.2%
Downloads: 87.0%
Maintainers (1)
Last synced:
10 months ago
Dependencies
.github/workflows/rhub.yaml
actions
- r-hub/actions/checkout v1 composite
- r-hub/actions/platform-info v1 composite
- r-hub/actions/run-check v1 composite
- r-hub/actions/setup v1 composite
- r-hub/actions/setup-deps v1 composite
- r-hub/actions/setup-r v1 composite
DESCRIPTION
cran
- R6 * imports
- checkmate * imports
- cli * imports
- generics * imports
- ife * imports
- mlr3superlearner * imports
- origami * imports
- ranger * suggests
- testthat >= 3.0.0 suggests