Package: lzrq 0.1.0

Jack Fitzgerald
lzrq: Quantile Regression for Logarithmic Relationships with Non-Positive Outcome Values
Provides the lzrq() function for estimating logarithmic regression slopes in quantile regression models, permitting the outcome variable to take on non-positive values. lzrq() conducts regression after replacing non-positive values with a sufficiently negative value. If the fitted values of a quantile regression on this transformed outcome are all greater than the negative value, then results are displayed. The resulting coefficients can be meaningfully interpreted as logarithmic intensive-margin relationships between the outcome variable and the independent variables, even with non-positive values in the outcome variable. If the condition does not hold for the specified quantile, then the command iteratively makes the value larger and checks again. After ten iterations where the condition does not hold, the functions return an error and suppress results. This is an automated adaptation of the algorithm described by Liu & Kaplan (2025) <https://drive.google.com/file/d/1F3dnhm8MrlO5aRrGt48rBWAEaBqdCBH-/view> and implemented in the companion Stata command lzqreg, described in Fitzgerald et al. (2026) <doi:10.31222/osf.io/juda7_v1>.
Authors:
lzrq_0.1.0.tar.gz
lzrq_0.1.0.zip(r-4.7)lzrq_0.1.0.zip(r-4.6)lzrq_0.1.0.zip(r-4.5)
lzrq_0.1.0.tgz(r-4.6-any)lzrq_0.1.0.tgz(r-4.5-any)
lzrq_0.1.0.tar.gz(r-4.7-any)lzrq_0.1.0.tar.gz(r-4.6-any)
lzrq_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
lzrq/json (API)
| # Install 'lzrq' in R: |
| install.packages('lzrq', repos = c('https://jack-fitzgerald.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/jack-fitzgerald/lzrq/issues
Last updated from:9631ef6057. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 114 | ||
| source / vignettes | OK | 171 | ||
| linux-release-x86_64 | OK | 155 | ||
| macos-release-arm64 | OK | 106 | ||
| macos-oldrel-arm64 | OK | 103 | ||
| windows-devel | OK | 93 | ||
| windows-release | OK | 93 | ||
| windows-oldrel | OK | 85 | ||
| wasm-release | OK | 90 |
Exports:lzrq
Dependencies:latticeMASSMatrixMatrixModelsquantregSparseMsurvival
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Quantile regression for logarithmic relationships with non-positive outcome values | lzrq print.lzrq summary.lzrq |