当前位置:网站首页>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
边栏推荐
- 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
- Leetcode notes
- 程序员上班摸鱼,这么玩才高端!
- SQL where multiple field filtering
- [line segment tree practice] recent requests + area and retrieval - array modifiable + my schedule I / III
- A detailed explanation of head pose estimation [collect good articles]
- AI landing new question type RPA + AI =?
- The root file system of buildreoot prompts "depmod:applt not found"
- Kivy tutorial of setting the size and background of the form (tutorial includes source code)
- How to open win11 remote desktop connection? Five methods of win11 Remote Desktop Connection
猜你喜欢
JDBC link Oracle reference code
Win11图片打不开怎么办?Win11无法打开图片的修复方法
A row of code r shows the table of Cox regression model
[team learning] [34 issues] scratch (Level 2)
Introduction to namespace Basics
MySQL数据库(基础篇)
Optimization of channel status offline of other server devices caused by easycvr cluster restart
深入解析Kubebuilder
R语言主成分pca、因子分析、聚类对地区经济研究分析重庆市经济指标
Programmers go to work fishing, so play high-end!
随机推荐
Windows are not cheap things
Analyse approfondie de kubebuilder
What if win11 pictures cannot be opened? Repair method of win11 unable to open pictures
[team learning] [34 issues] scratch (Level 2)
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
Can I specify a path in an attribute to map a property in my class to a child property in my JSON?
ESG全球领导者峰会|英特尔王锐:以科技之力应对全球气候挑战
树与图的深度优先遍历模版原理
Unit test asp Net MVC 4 Application - unit testing asp Net MVC 4 apps thoroughly
System framework of PureMVC
This "advanced" technology design 15 years ago makes CPU shine in AI reasoning
Complimentary tickets quick grab | industry bigwigs talk about the quality and efficiency of software qecon conference is coming
leetcode 53. Maximum subarray maximum subarray sum (medium)
DFS和BFS概念及实践+acwing 842 排列数字(dfs) +acwing 844. 走迷宫(bfs)
Field data acquisition and edge calculation scheme of CNC machine tools
赠票速抢|行业大咖纵论软件的质量与效能 QECon大会来啦
Digital chemical plant management system based on Virtual Simulation Technology
Nanopineo use development process record
过气光刻机也不能卖给中国!美国无理施压荷兰ASML,国产芯片再遭打压
namespace基础介绍