PERFECT TABLES IN

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 157

  • @rodrigonehara3143
    @rodrigonehara3143 2 роки тому +20

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

  • @jeandenys7
    @jeandenys7 4 місяці тому +2

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

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  4 місяці тому

      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 2 роки тому +5

    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 2 роки тому +2

    Your videos and blog are extremly helpful for me as a psych student working in research. Thank you!

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  2 роки тому

      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!

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

    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 2 роки тому +2

    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  2 роки тому +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

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

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

      Happy to hear that! Thanks for your feedback! I look forward to produce more content next year.

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

      @@yuzaR-Data-Science i look forward to it !

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

      @@staedtler8479 👍

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

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

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

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

  • @SergioUribe
    @SergioUribe 2 роки тому

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

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

  • @so4ragb
    @so4ragb 2 роки тому

    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  2 роки тому +1

      Most welcome 😊 Thanks for cool request and especially for watching!

  • @fishfish20
    @fishfish20 2 роки тому

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

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

    Love the editing. Well done! Great content too!

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

    Thank you for this great video. Can you please share again the script on your channel please? Have a nice day!

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

      just updated the link for 50 PDFs, this one is there too. Enjoy! ;)

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

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

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

      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!

  • @1986mayday
    @1986mayday 2 роки тому

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

  • @niceday2015
    @niceday2015 2 роки тому

    Thank for the nice editting and informative video.

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

  • @tjaeg
    @tjaeg 2 роки тому

    Congrats. Keep on!

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

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

  • @thomaswiggersmller8983
    @thomaswiggersmller8983 2 місяці тому

    Thank you for the great video!
    After updating R i now get slightly different Q1 and Q3 values in some of my variables. I found out it might be due to a change in the method gtsummary uses to calculate the quartiles. Method 7 and method 8..
    Is there a way to change this back to what it was before?

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  2 місяці тому

      Glad it helped! I don't know about the methods switch after update. But I know that the author of the package is responsive and you can ask him via github or twitter or any other way. He'll give much better answer.

    • @thomaswiggersmller8983
      @thomaswiggersmller8983 2 місяці тому

      @yuzaR-Data-Science i will try that, thank you

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  2 місяці тому

      @@thomaswiggersmller8983 👍

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

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

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

    Great Job!! Thank you, sir.

  • @jumamustafaphiri2821
    @jumamustafaphiri2821 5 місяців тому

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

      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!

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

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

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

      @@yuzaR-Data-Science Thanks. But it would be better if it can create a nice pdf table directly.

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  8 місяців тому

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

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

  • @nukenelson
    @nukenelson 7 місяців тому

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

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

  • @bervelinlumesa3475
    @bervelinlumesa3475 7 місяців тому

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

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

      @@yuzaR-Data-Science Thank you

    • @bervelinlumesa3475
      @bervelinlumesa3475 7 місяців тому

      I found modify_column_hide function that can do it

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  6 місяців тому

      you are very welcome!

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  6 місяців тому

      cool! thanks for posting "modify_column_hide()" here, it will be beneficial for the whole community. glad, you could solve this one!

  • @ramoda13
    @ramoda13 7 місяців тому

    Amazing video. Thank you.

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

      @@yuzaR-Data-Science What about the background color in the table, is that also customizable?

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

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

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

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

    Thank you so much for your video !!!!

  • @ambhat3953
    @ambhat3953 2 роки тому

    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  2 роки тому +1

      of coarse! tbl_cross() function, or percentages with tbl_summary() for columns, rows or cells

    • @ambhat3953
      @ambhat3953 2 роки тому

      @@yuzaR-Data-Science Thanks, will take a look into them

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  2 роки тому

      @@ambhat3953 you are welcome!

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

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

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

      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.

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

      @@yuzaR-Data-Science No worries sir! Thank you!

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  3 місяці тому

      @@kandanooldivya4763 👍

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

  • @icefunkdark8555
    @icefunkdark8555 2 роки тому

    thank you for the great video :)

  • @praveenbhoopathi9487
    @praveenbhoopathi9487 8 місяців тому

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

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

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

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

      @@yuzaR-Data-Science Thank you so much. Amazing

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  8 місяців тому

      @@praveenbhoopathi9487 you are very welcome! ;)

  • @user-dl8le5cs6t
    @user-dl8le5cs6t 9 місяців тому

    Is there a way I can do this for complex suvrey?

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  9 місяців тому

      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.

  • @alexandregeorgelustosa5969
    @alexandregeorgelustosa5969 2 роки тому

    Awesome!

  • @siriyakcr
    @siriyakcr 2 роки тому

    Awesome 😁😁

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

    How did u get mutivariable model?

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

    Great vid, sir! May I request you to create a video about deep learning in R?

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

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

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

      nice! I love Josh Starmers channel.

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

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

  • @maximzankevich2513
    @maximzankevich2513 2 роки тому

    Just awesome

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

    Can i export of csv or xlsx

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  4 місяці тому

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

  • @denizgoktas1535
    @denizgoktas1535 2 роки тому

    How to export tables into LaTeX?

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

    God bless you!

  • @saeedmohammadi8504
    @saeedmohammadi8504 5 місяців тому

    It was Amazing

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

    Amazing

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

    amazing!! I have joined the channel...Please can you share the codes? it will be helpful while using the package

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  Місяць тому

      thanks :) you probably only subscribed. I send the code to people, who joined. It's a different button, where people support me monthly with a small pay. but you don't need to do that at all, you just can pause the video and write down the code, it's even better for a learning purposes to tipp out the code yourself. kind regards

  • @arseneadou9602
    @arseneadou9602 2 роки тому +1

    Very good job. Please, the link oh the code

    • @yuzaR-Data-Science
      @yuzaR-Data-Science  2 роки тому

      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  2 роки тому +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 2 роки тому

      @@yuzaR-Data-Science thank you very much Professor

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

    Yep, this will probably blow my teachers mind lol

  • @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 2 роки тому +1

    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