Other packages > Find by keyword >

foresty  

Forest Plots and Subgroup Effects from Fitted Regression Models
View on CRAN: Click here


Download and install foresty package within the R console
Install from CRAN:
install.packages("foresty")

Install from Github:
library("remotes")
install_github("cran/foresty")

Install by package version:
library("remotes")
install_version("foresty", "0.2.0")



Attach the package and use:
library("foresty")
Maintained by
Akihiro Shiroshita
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2026-09-12
Latest Update: 2026-09-12
Description:
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 and the 'geepack' 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>.
How to cite:
Akihiro Shiroshita (2026). foresty: Forest Plots and Subgroup Effects from Fitted Regression Models. R package version 0.2.0, https://cran.r-project.org/web/packages/foresty. Accessed 24 Oct. 2026.
Previous versions and publish date:
(2026-09-25 20:40), 0.1.0 (2026-09-12 16:40)
Other packages that cited foresty R package
View foresty citation profile
Other R packages that foresty depends, imports, suggests or enhances
Complete documentation for foresty
Functions, R codes and Examples using the foresty R package
Full foresty package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

forecastHybrid  
Convenient Functions for Ensemble Time Series Forecasts
Convenient functions for ensemble forecasts in R combining approaches from the 'forecast' package. ...
Download / Learn more Package Citations See dependency  
gemlog  
File Conversion for "Gem Infrasound Logger"
Reads data files from the 'Gem infrasound logger' for analysis and converts to segy format (which is ...
Download / Learn more Package Citations See dependency  
magicfor  
Magic Functions to Obtain Results from for Loops
Magic functions to obtain results from for loops. ...
Download / Learn more Package Citations See dependency  
climwin  
Climate Window Analysis
Contains functions to detect and visualise periods of climate sensitivity (climate windows) for a g ...
Download / Learn more Package Citations See dependency  
quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
FDRsampsize  
Compute Sample Size that Meets Requirements for Average Power and FDR
Defines a collection of functions to compute average power and sample size for studies that use the ...
Download / Learn more Package Citations See dependency  

29,080

R Packages

247,686

Dependencies

77,281

Author Associations

29,081

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA