Package: foresty 0.2.0.9000

foresty: Forest Plots and Subgroup Effects from Fitted Regression Models
Draws forest plots of exposure effects from fitted regression models. Name an exposure and 'foresty' plots its effect. Name an effect modifier as well and it refits the model with the interaction term, estimates the exposure effect within each level of the modifier as a linear combination of the coefficients, and reports the joint interaction test beside those estimates. It takes one exposure and one modifier at a time, so the interaction is always a two-way one. Rows of the plot and of the table beside it share one scale, in a layout that can follow a journal's house style. The same results go to a self-contained HTML page holding the subgroup estimates, the joint test and the coefficient table. The 'car' package computes the linear combinations and their tests. Models fitted by stats::glm(), stats::lm(), the 'survival' package, the 'lme4' package, the 'geepack' package and the 'survey' package are supported, as is any fit supplying coef() and vcov(). Ordinal outcomes are supported through the 'MASS' package and nominal ones through the 'nnet' package, where the figure carries one row per level of the outcome and the interaction is tested jointly across the equations. Fits from the 'rms' package are refused, naming the function that fits the same model in their place. The estimation of an exposure effect within a level of a modifier, and the test of the difference between such estimates, follow Altman and Bland (2003) <doi:10.1136/bmj.326.7382.219> and VanderWeele and Knol (2014) <doi:10.1515/em-2013-0005>; the reporting of subgroup effects beside the interaction test follows Wang et al. (2007) <doi:10.1056/NEJMsr077003>, and the figure itself the forest plot described by Lewis and Clarke (2001) <doi:10.1136/bmj.322.7300.1479>.
Authors:
foresty_0.2.0.9000.tar.gz
foresty_0.2.0.9000.zip(r-4.7-any)foresty_0.2.0.9000.zip(r-4.6-any)foresty_0.2.0.9000.zip(r-4.5-any)
foresty_0.2.0.9000.tgz(r-4.6-any)foresty_0.2.0.9000.tgz(r-4.5-any)
foresty_0.2.0.9000.tar.gz(r-4.7-any)foresty_0.2.0.9000.tar.gz(r-4.6-any)
foresty_0.2.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
foresty/json (API)
| # Install 'foresty' in R: |
| install.packages('foresty', repos = c('https://akishiroshita.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/akishiroshita/foresty/issues
- foresty_cohort - A simulated birth cohort
Last updated from:9755a7fbda. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 288 | ||
| source / vignettes | OK | 230 | ||
| linux-release | OK | 279 | ||
| macos-release | OK | 150 | ||
| macos-oldrel | OK | 162 | ||
| windows-devel | OK | 239 | ||
| windows-release | OK | 244 | ||
| windows-oldrel | OK | 244 | ||
| wasm-release | OK | 141 |
Exports:foresty_appforesty_colorsforesty_combineforesty_dataforesty_interactionforesty_layoutforesty_mainforesty_report
Dependencies:abindbackportsbootbroomcarcarDatacheckmateclicolorspacecowplotcpp11DerivdoBydplyrfarverforecastFormulafracdiffgenericsggplot2gluegtableisobandlabelinglatticelifecyclelme4lmtestmagrittrMASSMatrixMatrixModelsmgcvminqamodelrnlmenloptrnnetnumDerivpatchworkpbkrtestpillarpkgconfigpurrrquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRdpackreformulasrlangS7scalesSparseMstringistringrsurvivaltibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrzoo
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Build a forest plot by clicking | foresty_app |
| A simulated birth cohort | foresty_cohort |
| The qualitative palettes a figure can be colored from | foresty_colors |
| Combine several foresty figures into one forest plot | foresty_combine |
| Draw a forest plot and its table from a data frame of estimates | foresty_data |
| Exposure effect within each level of an effect modifier | foresty_interaction |
| Layout and style of a foresty figure | foresty_layout |
| Forest plot of exposure effects across models | foresty_main |
| Write a foresty figure and its numbers to a self-contained HTML page | foresty_report |
| Model methods for foresty figures | coef.foresty foresty-model-methods formula.foresty model.frame.foresty nobs.foresty predict.foresty vcov.foresty |
| Turn a foresty figure into a data frame | as.data.frame.foresty foresty-tidiers glance.foresty tidy.foresty |
| Draw a forest plot | grid.draw.foresty plot.foresty print.foresty |
| Summarize a foresty figure | print.summary.foresty summary.foresty |