[BlindRUG] Reading output and easily understanding which number corresponds to what
Seo, JooYoung
jseo1005 at illinois.edu
Sat Oct 14 19:53:25 UTC 2023
Hello Miso,
Yes, that’s possible. Please find the following code snippet and I hope that this helps. I have included the R code inside the r codeblock.
``` r
# Install the following packages first if not available
library(tidyverse) # This is for data wrangling in general
library(tidymodels) # Useful package for modeling
library(gt) # making publication-ready table
# Save your model
out.lm <- lm(dist ~ speed, data = cars)
# Use tidy function to make your model as a tidy grid form
tidy(out.lm) %>%
# Use gt function to display the output in your browser as an html format
gt()
```
All the best,
JooYoung
--------------------
JooYoung Seo, Ph.D. (he/him/his)
Assistant Professor, School of Information Sciences
Faculty Affiliate, National Center for Supercomputing Applications
Faculty Affiliate, Illinois Informatics Institute
University of Illinois Urbana-Champaign
Room 5158, 614 E. Daniel St.
Champaign, IL 61820
(217) 333-2671 | jseo1005 at illinois.edu<mailto:jseo1005 at illinois.edu>
ischool.illinois.edu/people/jooyoung-seo<https://ischool.illinois.edu/people/jooyoung-seo>
[University of Illinois logo]<http://illinois.edu/>
Under the Illinois Freedom of Information Act any written communication to or from university employees regarding university business is a public record and may be subject to public disclosure.
From: BlindRUG <blindrug-bounces at nfbnet.org> On Behalf Of Miso Kwak via BlindRUG
Sent: Saturday, October 14, 2023 11:18 AM
To: 'Blind R Users Group' <blindrug at nfbnet.org>
Cc: misokwak12 at gmail.com
Subject: [BlindRUG] Reading output and easily understanding which number corresponds to what
Hello,
I am having a difficulty asking this question succinctly so I am pasting *parts of my code* and output below. I imagine this is an easy question for expert R users.
> summary(out.lm)
Call:
lm(formula = mathpre ~ collgpaa, data = scs)
Residuals:
Min 1Q Median 3Q Max
-6.0465 -1.9008 -0.0637 1.8426 6.6097
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 3.4122 0.7581 4.501 1.13e-05
***
collgpaa 1.0384 0.2655 3.912 0.000124
***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05
'.' 0.1 ' ' 1
Residual standard error: 2.646 on 208 degrees of
freedom
Multiple R-squared: 0.06852, Adjusted R-squared: 0.06405
F-statistic: 15.3 on 1 and 208 DF, p-value: 0.0001241
In the part of this output that shows coefficients, I can tell that estimate std error is 0.7581 and T-value is 4.501, by memorizing the placements of std error, t-value and Pr(>|t|). And knowing what kinds of number to expect I guess could work in most cases I may run into.
I believe my sighted colleagues are able to easily place which number belongs to what by looking at how they are placed (4.501 directly underneath t value for example).
Perhaps as I practice more, I will become more efficient over time but I am curious, is there a way I can make the process of reading the output and placing which number belongs to where more efficient for? E.g., having this be displayed in a list format or table format that I can navigate cell by cell vertically?
Thank you for your consideration and any suggestion you may be able to offer.
Miso
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nfbnet.org/pipermail/blindrug_nfbnet.org/attachments/20231014/17352e81/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 5363 bytes
Desc: image001.png
URL: <http://nfbnet.org/pipermail/blindrug_nfbnet.org/attachments/20231014/17352e81/attachment.png>
More information about the BlindRUG
mailing list