当前位置:网站首页>A simple and beautiful regression table is produced in one line of code~
A simple and beautiful regression table is produced in one line of code~
2022-07-07 04:50:00 【Mrrunsen】
After establishing the regression model , The next step is to tabulate the results , Then report or publish .
Usually , You need to manually compare the parameters with p Value, etc. excerpt to word. But sometimes you also need to make a list quickly , So that it can be directly pasted to ppt Zhongbao , Or export and publish it as a picture in the paper .
Although in previous articles ( See end of article ) Similar topics have been introduced , But the code recommended today is simpler , The forms produced are not inferior
.
Install and load now R package :
install.packages("flextable")
library(flextable)
summary(mtcars)
next step , Establish regression equation , Will use mpg As a dependent variable ,vs, hp, wt As an independent variable , And add all the interaction items between them :
mymodel <- lm(mpg ~ vs * hp * wt, data = mtcars)
summary(mymodel)
Okay , Now you can copy the value
边栏推荐
- What work items do programmers hate most in their daily work?
- Thesis landing strategy | how to get started quickly in academic thesis writing
- What if the win11 screenshot key cannot be used? Solution to the failure of win11 screenshot key
- GPT-3当一作自己研究自己,已投稿,在线蹲一个同行评议
- Meaning of 'n:m' and '1:n' in database design
- Wechat can play the trumpet. Pinduoduo was found guilty of infringement. The shipment of byte VR equipment ranks second in the world. Today, more big news is here
- 一度辍学的数学差生,获得今年菲尔兹奖
- Case reward: Intel brings many partners to promote the innovation and development of multi domain AI industry
- Implementation of JSTL custom function library
- How to solve the problem of adding RTSP device to easycvr cluster version and prompting server ID error?
猜你喜欢
Chapter 9 Yunji datacanvas company has been ranked top 3 in China's machine learning platform market
Digital chemical plants realize the coexistence of advantages of high quality, low cost and fast efficiency
Camera calibration (I): robot hand eye calibration
这项15年前的「超前」技术设计,让CPU在AI推理中大放光彩
Chapter 9 Yunji datacanvas company won the highest honor of the "fifth digital finance innovation competition"!
[line segment tree practice] recent requests + area and retrieval - array modifiable + my schedule I / III
Vscode 如何使用内置浏览器?
Basic idea of counting and sorting
Vscode automatically adds a semicolon and jumps to the next line
案例大赏:英特尔携众多合作伙伴推动多领域AI产业创新发展
随机推荐
Oracle - views and sequences
JetBrain Pycharm的一系列快捷键
九章云极DataCanvas公司获评36氪「最受投资人关注的硬核科技企业」
Meaning of 'n:m' and '1:n' in database design
What if the win11 screenshot key cannot be used? Solution to the failure of win11 screenshot key
Jetson nano配置pytorch深度学习环境//待完善
Both primary and secondary equipment numbers are 0
Complimentary tickets quick grab | industry bigwigs talk about the quality and efficiency of software qecon conference is coming
Win11图片打不开怎么办?Win11无法打开图片的修复方法
Tiktok may launch an independent grass planting community platform: will it become the second little red book
Video fusion cloud platform easycvr video Plaza left column list style optimization
This "advanced" technology design 15 years ago makes CPU shine in AI reasoning
赠票速抢|行业大咖纵论软件的质量与效能 QECon大会来啦
The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly
浙江大学周亚金:“又破又立”的顶尖安全学者,好奇心驱动的行动派
MySQL null value processing and value replacement
Is there any way to bookmark the code in the visual studio project- Is there a way to bookmark code in a Visual Studio project?
Web3 社区中使用的术语
C # use Siemens S7 protocol to read and write PLC DB block
System framework of PureMVC