当前位置:网站首页>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
边栏推荐
- jvm是什么?jvm调优有哪些目的?
- 一图看懂!为什么学校教了你Coding但还是不会的原因...
- Structure actual training camp | after class homework | module 6
- 食堂用户菜品关系系统(C语言课设)
- Lessons and thoughts of the first SQL injection
- 关于01背包个人的一些理解
- Jetson nano配置pytorch深度学习环境//待完善
- 树与图的深度优先遍历模版原理
- Lecture 3 of "prime mover x cloud native positive sounding, cost reduction and efficiency enhancement lecture" - kubernetes cluster utilization improvement practice
- Field data acquisition and edge calculation scheme of CNC machine tools
猜你喜欢
九章云极DataCanvas公司摘获「第五届数字金融创新大赛」最高荣誉!
A row of code r shows the table of Cox regression model
[hand torn STL] list
MySQL数据库(基础篇)
Digital chemical plants realize the coexistence of advantages of high quality, low cost and fast efficiency
System framework of PureMVC
[team learning] [34 sessions] Alibaba cloud Tianchi online programming training camp
The easycvr platform is connected to the RTMP protocol, and the interface call prompts how to solve the error of obtaining video recording?
Optimization of channel status offline of other server devices caused by easycvr cluster restart
深耕开发者生态,加速AI产业创新发展 英特尔携众多合作伙伴共聚
随机推荐
计数排序基础思路
Intel and Xinbu technology jointly build a machine vision development kit to jointly promote the transformation of industrial intelligence
Win11 control panel shortcut key win11 multiple methods to open the control panel
[practice leads to truth] is the introduction of import and require really the same as what is said on the Internet
Organize five stages of actual attack and defense drill
图灵诞辰110周年,智能机器预言成真了吗?
Poor math students who once dropped out of school won the fields award this year
Station B boss used my world to create convolutional neural network, Lecun forwarding! Burst the liver for 6 months, playing more than one million
The root file system of buildreoot prompts "depmod:applt not found"
Camera calibration (I): robot hand eye calibration
JDBC link Oracle reference code
Data security -- 12 -- Analysis of privacy protection
NTU notes 6422quiz review (1-3 sections)
过气光刻机也不能卖给中国!美国无理施压荷兰ASML,国产芯片再遭打压
What is JVM? What are the purposes of JVM tuning?
赠票速抢|行业大咖纵论软件的质量与效能 QECon大会来啦
Fiance donated 500million dollars to female PI, so that she didn't need to apply for projects, recruited 150 scientists, and did scientific research at ease!
Video fusion cloud platform easycvr video Plaza left column list style optimization
这项15年前的「超前」技术设计,让CPU在AI推理中大放光彩
[line segment tree practice] recent requests + area and retrieval - array modifiable + my schedule I / III