Тёмный

R package reviews {gtsummary} Publication-Ready Tables of Data, Statistical Tests and Models! 

yuzaR Data Science
Подписаться 9 тыс.
Просмотров 26 тыс.
50% 1

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 147   
@rodrigonehara3143
@rodrigonehara3143 Год назад
I have no more words to say how useful your videos are. Have a great day, Sir.
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Glad it is useful! Cheers
@igordemetriusalencar5861
@igordemetriusalencar5861 Год назад
Thank you! That's what I was looking for! I have a statistical analysis to do and this will help me to present it in a simple, precise, and informative way.
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Glad it was helpful!
@fishfish20
@fishfish20 Год назад
Be blessed sir. I can't lie, I always come here to get packages. ☺ Thank you sir for the clear explanations.
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Always welcome!
@SergioUribe
@SergioUribe Год назад
awesome presentation. Big fan of the gtsummary package and now fan of your channel, kudos!
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Much appreciated! And thanks for watching!
@statlab_stat.solution
@statlab_stat.solution Год назад
Wow!! I am speechless how useful this is.!!!
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Glad it was helpful! I also love gtsummary and use it everyday. Hope you find the rest of my content useful as well. Thanks for your nice feedback and for watching!
@doaaguda2783
@doaaguda2783 Год назад
Really this video helped me a lot, really amazing for the beginners like me. Please if you can make more videos for more functions that do tables in R like summary_factorlist and others
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Thanks 🙏 I’ll see whether I’ll find enough useful material for another video.
@anyijukamark8257
@anyijukamark8257 11 месяцев назад
i have learnt alot in the video, thanks alot teacher i would also want to know how possible it is to add superscripts indicating the statistical difference across and along the table. this is important to me thank you Yury
@yuzaR-Data-Science
@yuzaR-Data-Science 11 месяцев назад
Yeah, it's definitely possible, either with gtsummary, or with gt. I did that once, but couldn't find the script. Have a look at this one: stackoverflow.com/questions/74555622/gtsummary-how-to-add-caption-for-specific-variables Thank you for watching!
@niceday2015
@niceday2015 Год назад
Thank for the nice editting and informative video.
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
You are very welcome! Thanks you for watching!
@nukenelson
@nukenelson 3 месяца назад
Is it possible that alongwith P value we also have Chi Square Statistics value & df value etc in GtSummary table..if yes what's the code
@yuzaR-Data-Science
@yuzaR-Data-Science 3 месяца назад
Not straight forward unfortunately. You could create a data frame and use flextable and the export it in word or png
@fishfish20
@fishfish20 Год назад
Be blessed sir. I can't lie, I always come here to get packages. ☺ Thank you sir for the clear explanations.
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
I am glad it's useful. Thanks for watching!
@maximzankevich2513
@maximzankevich2513 Год назад
Just awesome
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Glad you liked it!
@mkklindhardt
@mkklindhardt 2 месяца назад
I really love your videos. Thnks for all this valuable content and guidelines. Do you have a place where we can find your scripts from your videos?
@yuzaR-Data-Science
@yuzaR-Data-Science 2 месяца назад
Hi, thanks soo much for your valuable feedback. Sure, I share scripts of the videos, which include code and explanations with the members of the channel. Members just go to the community tab and ask for it. Cheers :)
@jumamustafaphiri2821
@jumamustafaphiri2821 2 месяца назад
This takes me two days to do in SPSS. Thank you for saving my time. You just won yourself a subscriber! How do I get the code?
@yuzaR-Data-Science
@yuzaR-Data-Science 2 месяца назад
Thanks man! Hope the rest of the videos is also useful! I send the code to the members of the channel, thus, join if you wish. It's of coarse not necessary, because youtube is free and you can just stop the video at any moment and write off the code. Kind regards!
@warrenmalambo578
@warrenmalambo578 Год назад
Your videos are always amazing. I've been using the gtsummary package but hadn't explored the tbl-merge function. Absolutely love it. Will explore more
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Glad it's useful! Thanks you for nice feedback and for watching! If you think, it will be useful for others, feel free to share the video. Cheers
@jeandenys7
@jeandenys7 20 дней назад
Thanks Dr. I found this after your coment yesterday on linkedin. Very clear!
@yuzaR-Data-Science
@yuzaR-Data-Science 19 дней назад
Excellent! I just say and answered this comment, Jean! Thanks a lot for such a generous feedback! I hope other videos would also be useful for you. Warm welcome to my channel! :)
@Lenman55
@Lenman55 Год назад
Your videos and blog are extremly helpful for me as a psych student working in research. Thank you!
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Glad it's useful for more then me ;) Thanks for your nice feedback, it means a lot to me! And motivates to continue. And thanks for watching!
@arseneadou9602
@arseneadou9602 Год назад
Very good job. Please, the link oh the code
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Thanks for watching! I have some technical issues with my blog / github. So, need to fix it soon. Please, check for new blog-articles later.
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
hey Arsène, the technical issues are solved, I splitted the code into two blog-posts: yuzar-blog.netlify.app/posts/2022-10-31-gtsummary/ yuzar-blog.netlify.app/posts/2022-11-25-gtsummary2/ Enjoy!
@arseneadou9602
@arseneadou9602 Год назад
@@yuzaR-Data-Science thank you very much Professor
@user-dl8le5cs6t
@user-dl8le5cs6t 6 месяцев назад
Is there a way I can do this for complex suvrey?
@yuzaR-Data-Science
@yuzaR-Data-Science 6 месяцев назад
actually, yes. but it of coarse depends on the complexity. start with checking out this function "tbl_svysummary", but then browse in internet for more survey functions from gtsummary.
@kennethgottfredsen767
@kennethgottfredsen767 Год назад
Can i rename all the text in the table. Or Can i only rename the labels?
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
sure, it's somewhere inside of the video: - label - changes variable names - missing_text - changes the name of the missing data - modify_header(list( label ~"**Model Outcome**", estimate ~ "**Treatment Coef.**" )) etc. if it's not what you want, just rename things in your table and use gtsummary on top of it
@kennethgottfredsen767
@kennethgottfredsen767 10 месяцев назад
@@yuzaR-Data-Science What about the background color in the table, is that also customizable?
@yuzaR-Data-Science
@yuzaR-Data-Science 10 месяцев назад
@@kennethgottfredsen767 I think it is, I never particularly needed it, but I think that {gt} packages can make it happen. {gtsummary} is build on top of gt, so, you'll most likely find some options online. let me know whether you'll be able to find something on that. it will be useful for the whole community here in comments.
@kennethgottfredsen767
@kennethgottfredsen767 10 месяцев назад
@@yuzaR-Data-Science Yes it is possible! I did find a video on this matter. I'll send you the link once im done testing my code.
@wagawsendeku7750
@wagawsendeku7750 Год назад
> amscr1 % select(CFS, EVS, IHS, Resistance) %>% + tbl_summary(by = Resistance) %>% + bold_labels() %>% + add_n() %>% + add_overall() %>% + add_ci() %>% + add_n() %>% + add_difference(method = "test", + test = list(method = "odds.ratio", + conf.level = 0.95)) Error in add_difference(., method = "test", test = list(method = "odds.ratio", : unused argument (method = "test")
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
I think you have to many argument inside of add_difference. Just google the function add_difference and learn about it more online. cheers
@aram5704
@aram5704 Год назад
How did u get mutivariable model?
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Is the code below not part of the video? bm
@demigod4504
@demigod4504 Год назад
Hello. What was the code used to create the object "bm_table"? That is, the multivariate model? Thanks a lot, Sir
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Yes, correct: bm
@demigod4504
@demigod4504 Год назад
@@yuzaR-Data-Science Thanks sir, awesome content 😃👍 Keep going!!
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
@@demigod4504 Will do. Thank you for watching!
@diegorada2235
@diegorada2235 Год назад
Hi! Thank you so much for the video. I am trying to use add_global_p() to a linear model with interactions to a lm with interactions, but it is giving me error. I was wondering what I could do
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
That actually works on my computer: library(gtsummary) m % add_global_p() so, probably some packages need an update
@wagawsendeku7750
@wagawsendeku7750 Год назад
p %>% + tbl_summary(by = ptys) Error: 'yaml_body' is not an exported object from 'namespace:xfun'
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Try to install the newest version of the 'xfun' package. Update all the other packages, your R and RStudio. Restart everything, your PC and RStudio
@bervelinlumesa3475
@bervelinlumesa3475 3 месяца назад
Hello Sir. Is it possible to display only one category of the dichotomous variable provided with the "by" parameter. For example I only want to display the percentage of people who said Yes (sport-Oui). library(gtsummary) library(questionr) data("hdv2003") hdv2003 %>% tbl_summary( include = c("sexe", "relig", "relig"), by = "sport", percent = "row", statistic = all_categorical() ~ "{p}%" ) . The objective is that I would subsequently like to combine several tables where in the column I will have the percentages of several variables.
@yuzaR-Data-Science
@yuzaR-Data-Science 3 месяца назад
Yes it’s possible. Check out the arguments of the Funktion please yourself, I am away from my computer for a week. And you can combine several tables easily via tbl_merge
@bervelinlumesa3475
@bervelinlumesa3475 3 месяца назад
@@yuzaR-Data-Science Thank you
@bervelinlumesa3475
@bervelinlumesa3475 3 месяца назад
I found modify_column_hide function that can do it
@yuzaR-Data-Science
@yuzaR-Data-Science 3 месяца назад
you are very welcome!
@yuzaR-Data-Science
@yuzaR-Data-Science 3 месяца назад
cool! thanks for posting "modify_column_hide()" here, it will be beneficial for the whole community. glad, you could solve this one!
@shrikantdeshmukh7951
@shrikantdeshmukh7951 17 дней назад
Can i export of csv or xlsx
@yuzaR-Data-Science
@yuzaR-Data-Science 17 дней назад
I don't think so. May be with "gt" package. Please, let me know, when you figure it out. cheers
@CanDoSo_org
@CanDoSo_org 6 месяцев назад
Could you please show how to make the settings work for pdf file? Many settings do not work in pdf file output.
@yuzaR-Data-Science
@yuzaR-Data-Science 5 месяцев назад
it works in the html very good.pdf, I didn't even try, because it was never needed. and you can export the tables in word or png format. for example become part of the paper. so, the work-around would be to produce a word document with the table of your choise and then create a pdf out of it. cheers
@CanDoSo_org
@CanDoSo_org 5 месяцев назад
@@yuzaR-Data-Science Thanks. But it would be better if it can create a nice pdf table directly.
@yuzaR-Data-Science
@yuzaR-Data-Science 5 месяцев назад
for me PDF or PNG makes no difference, because it's not editable, but PDF can not be added to any other document, while PNG can be converted to PDF easily. cheers
@CanDoSo_org
@CanDoSo_org 5 месяцев назад
@@yuzaR-Data-Science Thanks. That makes sense. But it would be extremely convenient to directly create tables in pdf file. It saves time to copy and paste when we write academic papers. That's why we use Rmarkdown or Quarto markdown. We integrate the codings and literature writings. So we don't need to re-copy and paste when there are any changes or data updates on the tables.
@saeedmohammadi8504
@saeedmohammadi8504 Месяц назад
It was Amazing
@yuzaR-Data-Science
@yuzaR-Data-Science Месяц назад
Glad you liked it! ;) Thanks for watching!
@so4ragb
@so4ragb Год назад
by far the best video I have seen on gtsummary. And thanks for those Uni/multi var results, which I had requested.
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Most welcome 😊 Thanks for cool request and especially for watching!
@praveenbhoopathi9487
@praveenbhoopathi9487 4 месяца назад
I am experiencing some difficulty in copying these tables into a word document... therefore, could you please help me in this ?
@yuzaR-Data-Science
@yuzaR-Data-Science 4 месяца назад
you don't copy them into word, you extract them, which is later in the video fancy_table %>% as_flex_table() %>% save_as_docx(path = "fancy_table.docx")
@praveenbhoopathi9487
@praveenbhoopathi9487 4 месяца назад
I still havent got this.. tbl_summary(DescripCLSA15T, by = SROH)%>% add_p()%>% add_overall()%>% add_stat_label( label = all_continuous()~"Mean(sd)" This is one such code which is working. How do I export this table to a word document. Kindly help..Pardon me for the inconvenience
@yuzaR-Data-Science
@yuzaR-Data-Science 4 месяца назад
sure, save your code which worsk as a "fancy_table", then export fancy_table % add_p()%>% add_overall()%>% add_stat_label( label = all_continuous()~"Mean(sd)" fancy_table %>% as_flex_table() %>% save_as_docx(path = "fancy_table.docx") Let me know whether this worked. And by the way watch the video completely to the end, because the solution is in there ;)
@praveenbhoopathi9487
@praveenbhoopathi9487 4 месяца назад
@@yuzaR-Data-Science Thank you so much. Amazing
@yuzaR-Data-Science
@yuzaR-Data-Science 4 месяца назад
@@praveenbhoopathi9487 you are very welcome! ;)
@muhammedhadedy4570
@muhammedhadedy4570 Год назад
I came across this RU-vid channel by chance. How AMAZING your channel is!. Sunmarizing such an important package in 12 minutes (in FULL DETAILS), with such an easy and confident way is absolute brilliance. I'm definitely gonna watch every single video in your channel. From the bottom of my heart, thank you for your great work.
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Thanks a ton for such a positive feedback! gtsummary is certainly one of my favourite packages and is incredibly useful in everyday work! I hope you like other videos on other packages too! :) Thanks for watching!
@BukenyaKizito-p5v
@BukenyaKizito-p5v 3 месяца назад
Amazing
@yuzaR-Data-Science
@yuzaR-Data-Science 3 месяца назад
Thanks 🙏
@joshstat8114
@joshstat8114 11 месяцев назад
Great vid, sir! May I request you to create a video about deep learning in R?
@yuzaR-Data-Science
@yuzaR-Data-Science 11 месяцев назад
Great suggestion! I definitely plan to go into modelling and make a few videos on deep learning in R. But since I want to make videos on visualisation first and then on modelling, including all the other classical models first, the DL videos would take a while. Until then, if you still don't know the StatQuest youtube channel, check it out. This channel make tons of videos about them, less with programming, but more for an intuitive understanding. hope that helps. and thank you for watching!
@joshstat8114
@joshstat8114 11 месяцев назад
@@yuzaR-Data-Science which is I already did and it was so entertainingly informative. Thanks to him, I was able to create an LSTM function for time series forecasting similar to nnetar from forecast package.
@yuzaR-Data-Science
@yuzaR-Data-Science 11 месяцев назад
nice! I love Josh Starmers channel.
@joshstat8114
@joshstat8114 11 месяцев назад
@@yuzaR-Data-Science I really appreciate his work. Yours, as well. I hope we can collaborate in the future
@MannyBernabe
@MannyBernabe Год назад
Love the editing. Well done! Great content too!
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Thanks for feedback and for watching!
@tubihemukamamethodius6952
@tubihemukamamethodius6952 Год назад
One of the best videos of all time
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Thanks a ton! :) Glad you enjoyed it. My other videos might also be useful, if you liked this one. Cheers
@ropflpfopfl2555
@ropflpfopfl2555 Год назад
Yep, this will probably blow my teachers mind lol
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Plots and tables are all you need;)
@brazilfootball
@brazilfootball Год назад
Love these videos! Question: We loose the light gray outlines that separate the variables in the table when saving from R to PNG/word. Is there a way to keep and edit these in the final product?
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Not that I know of from the top of my head. But the {gt} package has enormous functionality, so I guess you just google the problem and, if it's possible, you'll find a solution quickly. Thanks for your feedback and thank you for watching!
@brazilfootball
@brazilfootball Год назад
@@yuzaR-Data-Science Thanks again! One solution that worked for me was converting and saving my table with ... %>% as_gt() %>% gt::gtsave(filename = ".png")
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
cool, mate! thanks for sharing! It'll be useful for the community and I'll use it too.
@sequoiagiganteum4832
@sequoiagiganteum4832 Год назад
can u explain this, how i handle it with an seperate outcome column? Because when i build a faktorcombination with the outcome, then plto table. It seems that the package just use the count, not die outcome. The outcome gets a seperate summary.. what is complete useless.
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
sorry, I don't know what do you mean by separate outcome. if you want to do a survival analysis, then look at this: www.danieldsjoberg.com/gtsummary/reference/tbl_survfit.html
@sequoiagiganteum4832
@sequoiagiganteum4832 Год назад
@@yuzaR-Data-Science im new in R. I have my obersvation column and i have my grouping column. Now i want to know the percentage of the groups based on my oberservation, not on counted of the group column. I dont know hoe i should fix this otherwise than building a df with interact and acast. But this isnt pritty nice. Maybe there is an option in the tbl_summary command. My grouping column have charakters not numeric. the numerics are in the oberservation column
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
I still struggle to understand what you want to calculate. If you have numeric variable, how and why do you want percentage ... of what? you can compare groups and get average of similar of your numeric column. Or you can count groups in categorical column, but you can't get percentage of a numeric column.
@1986mayday
@1986mayday Год назад
Nice work. Have shared this video with a few friends, :)
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Thanks for sharing!
@ramoda13
@ramoda13 3 месяца назад
Amazing video. Thank you.
@yuzaR-Data-Science
@yuzaR-Data-Science 3 месяца назад
Glad you liked it! Thanks for watching!
@donaldudah8097
@donaldudah8097 6 месяцев назад
Great Job!! Thank you, sir.
@yuzaR-Data-Science
@yuzaR-Data-Science 6 месяцев назад
Glad it was helpful! Thanks for watching!
@ambhat3953
@ambhat3953 Год назад
How helpful is this to use in basic exploratory data analysis representation ? Most of the times, i dont need to publish any stat summary, but just a basic table/pivot table. Does this have table transformation to pivot table ?
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
of coarse! tbl_cross() function, or percentages with tbl_summary() for columns, rows or cells
@ambhat3953
@ambhat3953 Год назад
@@yuzaR-Data-Science Thanks, will take a look into them
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
@@ambhat3953 you are welcome!
@keineahnung9828
@keineahnung9828 Год назад
How can I get trial dataset to practice?
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
There are tons of them! Just load "library(tidyverse)" and google datasets in tidyverse. Viel Spaß!
@abdulbouraa4529
@abdulbouraa4529 Год назад
Thank you so much for your video !!!!
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
You are welcome 🙏 thanks for watching!
@michaelgreco6740
@michaelgreco6740 Год назад
This is amazing, ive been working on a university project in r for days now. your video has helped me so much. thank you sir!
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Hello colleague, I also work at the uni. Glad it helped! Other videos might be useful too, because until now, I only have done videos on things I use every day. Thank you for watching!
@michaelgreco6740
@michaelgreco6740 Год назад
@@yuzaR-Data-Science hello! thanks for replying. i have looked at your blog and some of your other videos. theres some really good content that will help me with my R studio journey.
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
enjoy ;)
@tubihemukamamethodius6952
@tubihemukamamethodius6952 Год назад
One of the best videos of all time
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Thanks a ton! :) Glad you enjoyed it. My other videos might also be useful, if you liked this one. Cheers
@icefunkdark8555
@icefunkdark8555 Год назад
thank you for the great video :)
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
You are very welcome! Thanks for watching!
@tjaeg
@tjaeg Год назад
Congrats. Keep on!
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Thanks! I'll do my best ;)
@TheDungaga
@TheDungaga Год назад
God bless you!
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Thanks 🙏
@siriyakcr
@siriyakcr Год назад
Awesome 😁😁
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Thanks!
@alexandregeorgelustosa5969
@alexandregeorgelustosa5969 Год назад
Awesome!
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Thank you! Cheers!
@denizgoktas1535
@denizgoktas1535 Год назад
How to export tables into LaTeX?
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
Described here: www.danieldsjoberg.com/gtsummary/articles/rmarkdown.html
@denizgoktas1535
@denizgoktas1535 Год назад
@@yuzaR-Data-Science Thanks.
@yuzaR-Data-Science
@yuzaR-Data-Science Год назад
@@denizgoktas1535 You are welcome! Thanks for watching!
@staedtler8479
@staedtler8479 9 месяцев назад
I love your videos, very clear, fun to watch and most importantly we learn so much. Thank you so much
@yuzaR-Data-Science
@yuzaR-Data-Science 9 месяцев назад
Happy to hear that! Thanks for your feedback! I look forward to produce more content next year.
@staedtler8479
@staedtler8479 9 месяцев назад
@@yuzaR-Data-Science i look forward to it !
@yuzaR-Data-Science
@yuzaR-Data-Science 9 месяцев назад
@@staedtler8479 👍
@staedtler8479
@staedtler8479 9 месяцев назад
@@yuzaR-Data-Science pardon me, but i would like to ask you a question. If i have a set of categorical variables in my data and i'm trying to conduct a logistic regression using a binary outcome on Y. Is it even possible to have a decent model following such an approach?
@yuzaR-Data-Science
@yuzaR-Data-Science 9 месяцев назад
@@staedtler8479 if you have 0 and 1 as a response variable, then yes, you can do logistic regression. all the other variables are then predictors.
Далее
Китайка нашла Метиорит😂😆
00:21
Presentation-ready Summary Tables with {gtsummary}
52:18
Add any Plot to your {gt} table
15:40
Просмотров 3,9 тыс.
Китайка нашла Метиорит😂😆
00:21