Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to draw a forest map with R language to show the results of Logistic regression analysis

Shulou Source: shulou.com Published: 2022-06-01 21:57:02 09月30日 Update

How to use R language to draw a forest map to show the results of Logistic regression analysis, many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can get something.

Image.png

The results of Logistic regression analysis are presented in tabular form, which bolstered the statistically significant results to make the reader look less laborious. So, is there a more intuitive way to show the regression results? Of course there is. That's the forest map. In recent years, more and more literatures use forest maps to show the results of regression. Next, let's learn how to use R to make a forest map.

The first step is to prepare the data

The data shown in the forest map are usually the coefficient and 95% confidence interval of Logistic regression analysis and the P value of significance test, so how to obtain these results?

The code of logistic regression analysis

Data (Affairs,package = "AER")

Df

Tags: Results data forests analysis next methods tables preparation learning help language salient clear simple laborious intuitive tedious in recent years one line code Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB vpn Shulou Technology Microsoft Shulou Tech Info