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 03 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

mxmmod  
Measurement Model of Derivatives in 'OpenMx'
Provides a convenient interface in 'OpenMx' for building Estabrook's (2015) ...
Download / Learn more Package Citations See dependency  
sudokuAlt  
Tools for Making and Spoiling Sudoku Games
Tools for making, retrieving, displaying and solving sudoku games. This package is an alternative to ...
Download / Learn more Package Citations See dependency  
nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
WA  
While-Alive Loss Rate for Recurrent Event in the Presence of Death
Contains inferential and graphical routines for multi-group analysis of while-alive loss (or event) ...
Download / Learn more Package Citations See dependency  
Maintainer: Lu Mao (view profile)
cccrm  
Concordance Correlation Coefficient for Repeated (and Non-Repeated) Measures
Estimates the Concordance Correlation Coefficient to assess agreement. The scenarios considered are ...
Download / Learn more Package Citations See dependency  

28,905

R Packages

247,686

Dependencies

76,495

Author Associations

28,834

Publication Badges

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