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.
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!
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
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
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!
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 :)
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!
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
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! :)
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!
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.
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 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.
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
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.
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
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
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
@@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.
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")
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
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 ;)
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.
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!
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!
@@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.
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?
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!
@@yuzaR-Data-Science Thanks again! One solution that worked for me was converting and saving my table with ... %>% as_gt() %>% gt::gtsave(filename = ".png")
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.
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
@@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
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.
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 ?
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!
@@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 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?