Package: statacompat 1.0

Ari Purwanto Sarwo Prasojo
statacompat: Reproduce Selected 'Stata' Expression and Missing-Value Semantics
A lightweight compatibility layer for researchers translating 'Stata' data-management code into R. Provides vectorised helpers that reproduce selected 'Stata' expression semantics where they differ from base R, most importantly "Stata's" rule that numeric missing values are larger than every number: relational comparisons, inlist(), inrange(), cond(), missing(), and the 'egen' row functions rowtotal(), rowmean(), rowmiss() and rownonmiss(). Only the ordinary missing value is fully supported; "Stata's" extended missing values are detected and rejected wherever they would change a result.
Authors:
statacompat_1.0.tar.gz
statacompat_1.0.zip(r-4.7-any)statacompat_1.0.zip(r-4.6-any)statacompat_1.0.zip(r-4.5-any)
statacompat_1.0.tgz(r-4.6-any)statacompat_1.0.tgz(r-4.5-any)
statacompat_1.0.tar.gz(r-4.7-any)statacompat_1.0.tar.gz(r-4.6-any)
statacompat_1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
statacompat/json (API)
| # Install 'statacompat' in R: |
| install.packages('statacompat', repos = c('https://aripurwantosp.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/aripurwantosp/statacompat/issues
Last updated from:0b51947893. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 127 | ||
| source / vignettes | OK | 208 | ||
| linux-release | OK | 123 | ||
| macos-release | OK | 101 | ||
| macos-oldrel | OK | 132 | ||
| windows-devel | OK | 85 | ||
| windows-release | OK | 79 | ||
| windows-oldrel | OK | 68 | ||
| wasm-release | OK | 81 |
Exports:stata_condstata_eqstata_gestata_gtstata_inliststata_inrangestata_lestata_ltstata_missingstata_nestata_rowmeanstata_rowmissstata_rownonmissstata_rowtotal
Dependencies:
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Stata-style relational comparisons | stata_comparison stata_eq stata_ge stata_gt stata_le stata_lt stata_ne |
| Stata's 'cond()': vectorised if-else with Stata truth rules | stata_cond |
| Stata's 'inlist()': is a value equal to any of the candidates? | stata_inlist |
| Stata's 'inrange()': is a value known to lie in a closed interval? | stata_inrange |
| Stata's 'missing()': is any argument missing? | stata_missing |
| Stata's 'egen' row functions | stata_row stata_rowmean stata_rowmiss stata_rownonmiss stata_rowtotal |
