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

Поділитися
Вставка
  • Опубліковано 6 жов 2024

КОМЕНТАРІ • 149

  • @rodrigonehara3143
    @rodrigonehara3143 Рік тому +17

    I have no more words to say how useful your videos are.
    Have a great day, Sir.

  • @jeandenys7
    @jeandenys7 24 дні тому

    Thanks Dr.
    I found this after your coment yesterday on linkedin.
    Very clear!

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  23 дні тому

      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! :)

  • @igordemetriusalencar5861
    @igordemetriusalencar5861 Рік тому +3

    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.

  • @Lenman55
    @Lenman55 Рік тому +1

    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!

  • @fishfish20
    @fishfish20 Рік тому +1

    Be blessed sir. I can't lie, I always come here to get packages. ☺ Thank you sir for the clear explanations.

  • @muhammedhadedy4570
    @muhammedhadedy4570 Рік тому

    I came across this UA-cam 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  Рік тому +1

      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!

  • @warrenmalambo578
    @warrenmalambo578 Рік тому +1

    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  Рік тому +1

      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

  • @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  Рік тому +1

      Most welcome 😊 Thanks for cool request and especially 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  Рік тому +1

      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

  • @SergioUribe
    @SergioUribe Рік тому

    awesome presentation. Big fan of the gtsummary package and now fan of your channel, kudos!

  • @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!

  • @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.

  • @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 місяців тому +1

      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 місяців тому +1

      @@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.

  • @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!

  • @donaldudah8097
    @donaldudah8097 6 місяців тому

    Great Job!! Thank you, sir.

  • @MannyBernabe
    @MannyBernabe Рік тому

    Love the editing. Well done! Great content too!

  • @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 місяці тому +1

      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 :)

  • @abdulbouraa4529
    @abdulbouraa4529 Рік тому

    Thank you so much for your video !!!!

  • @ramoda13
    @ramoda13 3 місяці тому

    Amazing video. Thank you.

  • @niceday2015
    @niceday2015 Рік тому

    Thank for the nice editting and informative video.

  • @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!

  • @tjaeg
    @tjaeg Рік тому

    Congrats. Keep on!

  • @1986mayday
    @1986mayday Рік тому

    Nice work. Have shared this video with a few friends, :)

  • @TheDungaga
    @TheDungaga Рік тому

    God bless you!

  • @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 місяців тому +1

      @@yuzaR-Data-Science I really appreciate his work. Yours, as well. I hope we can collaborate in the future

  • @kandanooldivya4763
    @kandanooldivya4763 3 дні тому

    Sir, can you please make a video to make a table for experimental designs like split-plot analysis? I want some help to write the mean grouping analysis from the results to table, this includes superscripting the grouping letters on the mean values.

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  2 дні тому

      thanks for your request! I'll put it on the list for sure! But since I already planned to make lots videos on other topics, the video on split-plot might take a while.

  • @icefunkdark8555
    @icefunkdark8555 Рік тому

    thank you for the great video :)

  • @BukenyaKizito-p5v
    @BukenyaKizito-p5v 3 місяці тому

    Amazing

  • @saeedmohammadi8504
    @saeedmohammadi8504 Місяць тому

    It was Amazing

  • @alexandregeorgelustosa5969
    @alexandregeorgelustosa5969 Рік тому

    Awesome!

  • @maximzankevich2513
    @maximzankevich2513 Рік тому

    Just awesome

  • @siriyakcr
    @siriyakcr Рік тому

    Awesome 😁😁

  • @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  Рік тому +1

      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  Рік тому +1

      cool, mate! thanks for sharing! It'll be useful for the community and I'll use it too.

  • @arseneadou9602
    @arseneadou9602 Рік тому +1

    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  Рік тому +1

      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

  • @nukenelson
    @nukenelson 4 місяці тому

    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  4 місяці тому

      Not straight forward unfortunately. You could create a data frame and use flextable and the export it in word or png

  • @ropflpfopfl2555
    @ropflpfopfl2555 Рік тому

    Yep, this will probably blow my teachers mind lol

  • @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

  • @kennethgottfredsen767
    @kennethgottfredsen767 Рік тому +1

    Can i rename all the text in the table. Or Can i only rename the labels?

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  Рік тому +1

      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.

  • @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  Рік тому +1

      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!

  • @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

  • @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  6 місяців тому

      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 6 місяців тому

      @@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.

  • @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.

  • @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!

  • @demigod4504
    @demigod4504 Рік тому

    Hello. What was the code used to create the object "bm_table"? That is, the multivariate model? Thanks a lot, Sir

  • @aram5704
    @aram5704 Рік тому

    How did u get mutivariable model?

  • @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! ;)

  • @shrikantdeshmukh7951
    @shrikantdeshmukh7951 21 день тому

    Can i export of csv or xlsx

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  21 день тому

      I don't think so. May be with "gt" package. Please, let me know, when you figure it out. cheers

  • @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ß!

  • @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  Рік тому +1

      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.

  • @denizgoktas1535
    @denizgoktas1535 Рік тому

    How to export tables into LaTeX?

  • @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  Рік тому +1

      I think you have to many argument inside of add_difference. Just google the function add_difference and learn about it more online. cheers

  • @fishfish20
    @fishfish20 Рік тому

    Be blessed sir. I can't lie, I always come here to get packages. ☺ Thank you sir for the clear explanations.

  • @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