StatistikinDD
StatistikinDD
  • Видео 148
  • Просмотров 957 175
Analysing Football Wages in R Using tidyverse (Ft. @StatisticsGlobe )
Statistics Globe's Joachim Schork shows how to analyse football wage data using several tidyverse packages. I like the choice of dataset, and a few lines of quite simple R code provide some intriguing results!
You can find the data for download here:
www.kaggle.com/datasets/ultimus/football-wages-prediction
Joachim is starting a new interactive video course on how to master data manipulation in R using the tidyverse on November 27, 2023. Check it out and register here:
statisticsglobe.com/online-course-data-manipulation-r-dplyr-tidyverse
If you watch this video after November 27, 2023, I still encourage you to check out the course website to see if or when Joachim will repeat the course.
I also...
Просмотров: 525

Видео

R Markdown Users: Why you should switch to Quarto NOW
Просмотров 7 тыс.Год назад
Marketing for Quarto started in 2022. I finally got to try it. My conclusion: If you use R Markdown, you should switch to Quarto NOW. In the video, I give three main reasons. Resources mentioned in the video: Documentation: Quarto website quarto.org/ Alison Hill: We don’t talk about Quarto - Until Now! www.apreshill.com/blog/2022-04-we-dont-talk-about-quarto/ jumping rivers: I’m an R user: Quar...
Does ChatGPT Understand Dad Jokes?
Просмотров 185Год назад
I heard and read great things about ChatGPT. "Scary good", can fix errors in programming code, a well-known developer of R packages said it may replace Stackoverflow for him. So I wanted to test its sense of humor - admittedly a very tough task for any system of artificial intelligence. I used some of my favorite dad jokes to see what ChatGPT would make of them. The R programmer I mentioned is ...
My WORST Project Experience in Freelance Data Analysis
Просмотров 685Год назад
My WORST Project Experience as a Freelance Data Analyst! Over 15 years of experience in freelance data-related work offered plenty of opportunities for various experiences. This was my worst project to date. Video includes a plot twist and lessons learned. Looking forward to your comments! Thumbnail image credit to DeeKay on giphy.com Contact me, e. g. to discuss R workshops / trainings / webin...
Why You Should NOT use parallel::detectCores() in R
Просмотров 812Год назад
The detectCores() function from Base R's parallel package is very popular and often found in R scripts to set up parallelization. I've used it in videos and taught it in workshops, when I wasn't aware of a better alternative. The parallelly package now offers such a superior alternative which can avoid critical issues that may arise from using detectCores(). We look at which issues may arise, a...
What Can Go Wrong with Factors in R Programming
Просмотров 5832 года назад
Factors and factor levels can pose various challenges in R. We look at three of them: - Warning: Invalid factor level, NA generated - Recoding factors the wrong way - Converting factors to numeric Solutions include both Base R and tidyverse (dplyr, forcats). Contact me, e. g. to discuss (online) R workshops / trainings / webinars: www.linkedin.com/in/wolfriepl/ Facebook: statistikd...
R Programming Romance - including some MAGIC!
Просмотров 5672 года назад
Met a beautiful lady at a party. Turned out she was just as much into R as me. She challenged me to an "impress with R" competition. Leaflet, a dirty S3 class trick, some functional programming using purrr, and some magic numbers ... Code can be found here (a xaringan presentation, based on R Markdown): github.com/fjodor/functional-programming Contact me, e. g. to discuss (online) R workshops /...
How to Draw Barplots in R: Base R & ggplot2 (Ft. @StatisticsGlobe )
Просмотров 3 тыс.2 года назад
Happy to present the first collaboration on this channel: A contribution by @Statistics Globe. Thank you Joachim! Check out his channel: ruclips.net/user/StatisticsGlobe Also check out his website: statisticsglobe.com/ Twitter: JoachimSchork Contact me, e. g. to discuss (online) R workshops / trainings / webinars: www.linkedin.com/in/wolfriepl/ Facebook: statistikdresde...
R Programming: Object of Type 'Closure' is Not Subsettable
Просмотров 5 тыс.2 года назад
The error message "Object of Type 'Closure' is Not Subsettable" has presumably troubled many R users, not only beginners, and can be considered one of the less helpful messages. Here we'll answer two questions: - How can this error come about (and how to solve it, of course)? - What is a closure, anyway? We'll see two ways how this error may be triggered: 1. Accidentally using [] instead of () ...
R Programming / dplyr: Error in select (...): unused arguments
Просмотров 2,1 тыс.2 года назад
This is the first video in a new series called "What Can Go Wrong in R". When using dplyr's select function, you may run into the following error message: Error in select (names of columns / variables): unused arguments (names of columns / variables) What makes this error potentially disturbing is that the exact same code may behave differently in different situations. We look into when the cod...
Iterating over Several Vectors at Once in R: MAGIC & purrr
Просмотров 9372 года назад
It's fun to use magic in programming! Here, we use magic two-fold: applying the magic of the purrr package, and using magic numbers to generate meaningful messages from random samples of letters and numbers. Enjoy! Contents: direct code - user defined function - iterating via lapply() - map() - map2() - pmap() purrr is a powerful tool for your functional programming toolkit. Code used in presen...
How to Visualize Missing Data in R: naniar
Просмотров 2 тыс.2 года назад
Missing values can pose a huge challenge in data analysis. Why are data points missing? How do observations with missing values compare to observations without missing values? Are there patterns, are data missing randomly or not randomly? Visualization can greatly help answer such questions. The naniar package by Nicholas Tierney offers convenience functions to do that, and integrates well with...
More Fun Analyzing Data in R: Shiny Gadgets - A Lesser Known Side of Shiny
Просмотров 7552 года назад
Shiny Gadgets seem to be a lesser known side of Shiny, compared to regular Shiny Apps. While the latter are aimed at end users, Shiny Gadgets can make data analyses more fun and help us interactively explore data, find out about outliers, and label selected points in a scatterplot. Find out more about Shiny Gadgets: shiny.rstudio.com/articles/gadgets.html www.rstudio.com/resources/webinars/intr...
How To Quickly Explore Data in R: DataExplorer
Просмотров 2,4 тыс.2 года назад
Sometimes you may have very little time to familiarize yourself with new data. How many missings are there? Which variables are problematic in terms of missings? Which column types are there? How are the variables distributed, how are they correlated? How about a PCA (Principal Components Analysis)? Using your favorite R packages and functions, you may be able to answer such questions, but each...
Automate Textual Reports of Statistical Models in R! report / easystats
Просмотров 3,7 тыс.2 года назад
Writing prose / text paragraphs interpreting and describing statistical models can be time consuming and may not be the most fun part of data analysis. What if we had a "magic button" to get such reports automagically? Luckily, this magic button indeed exists! The reports package, which is part of the great easystats ecosystem, provides just that. With a simple one liner, calling report() on a ...
lapply: How to Replace for loops in R to create Several Plots
Просмотров 2,7 тыс.2 года назад
lapply: How to Replace for loops in R to create Several Plots
R Programming: My 10 Favorite Quotes
Просмотров 8412 года назад
R Programming: My 10 Favorite Quotes
How to Plot Statistical Group Comparisons in R: ggstatsplot
Просмотров 2,4 тыс.2 года назад
How to Plot Statistical Group Comparisons in R: ggstatsplot
What About "..." in R Functions? Magic and Danger
Просмотров 1,7 тыс.2 года назад
What About "..." in R Functions? Magic and Danger
How to set up Automated Tests for Your R Package using testthat
Просмотров 4,9 тыс.2 года назад
How to set up Automated Tests for Your R Package using testthat
Why and How to Include a Vignette in Your R Package
Просмотров 6 тыс.2 года назад
Why and How to Include a Vignette in Your R Package
How to Include Data in Your R Package
Просмотров 8 тыс.2 года назад
How to Include Data in Your R Package
R Programming: Avoiding Loops using Vectorization
Просмотров 2,8 тыс.2 года назад
R Programming: Avoiding Loops using Vectorization
How to Document a Function in Your R Package
Просмотров 10 тыс.2 года назад
How to Document a Function in Your R Package
Creating Your First R Package in 2 Minutes in RStudio!
Просмотров 21 тыс.2 года назад
Creating Your First R Package in 2 Minutes in RStudio!
Creating Your Own R Package: Why and When
Просмотров 7 тыс.2 года назад
Creating Your Own R Package: Why and When
R's Internal Data Formats: .Rda, .RData, .rds
Просмотров 3,4 тыс.2 года назад
R's Internal Data Formats: .Rda, .RData, .rds
How to Import / Export SAS, SPSS, Stata Data in R: haven; Systat, WEKA: foreign
Просмотров 2,5 тыс.2 года назад
How to Import / Export SAS, SPSS, Stata Data in R: haven; Systat, WEKA: foreign
How to Import Pivoted Excel Data in R: tidyxl, unpivotr
Просмотров 1,3 тыс.2 года назад
How to Import Pivoted Excel Data in R: tidyxl, unpivotr
How to Import XML Data into R using the XML Package
Просмотров 5 тыс.2 года назад
How to Import XML Data into R using the XML Package

Комментарии

  • @68chanakya18
    @68chanakya18 4 дня назад

    Thankyou for this I've completed my bachelor's in stats now thinking of doing my masters, this video really put my love for stats in words. Thank you from India.

  • @mikiallen7733
    @mikiallen7733 8 дней назад

    I dont understand , how then one can update such programm in a dynmaic or.live setting, i.e. fetching data on a regular basis while embedding the whole thing within ui and server separate shiny app functions? Your input is highly appreciated Merci

    • @StatistikinDD
      @StatistikinDD 8 дней назад

      @@mikiallen7733 I'd say esquisse is not meant for such settings, e.g. regular data updates. I'd use it to get started writing ggplot2 code. In shiny apps I wouldn't embed esquisse.

    • @mikiallen7733
      @mikiallen7733 8 дней назад

      @@StatistikinDD thanks for the prompt response sir

  • @albinonhabanga8066
    @albinonhabanga8066 16 дней назад

    I always get sane issue package ggstatsplot was built under R version 4.3.3 Doesn't work

    • @StatistikinDD
      @StatistikinDD 16 дней назад

      You could try to get it from GitHub. Do you have the latest R Version installed?

    • @albinonhabanga8066
      @albinonhabanga8066 16 дней назад

      @@StatistikinDD no. I think Now a have R version 4.3.2 I would like to update, do I need to Remove old version or I can try it: install.packages ("installr") library(installr) updateR()

    • @albinonhabanga8066
      @albinonhabanga8066 16 дней назад

      @@StatistikinDD after that I Would like to Join two columns become unique column in a dataframe. So the new column might be character and have two categories corresponding to the old two columns names. While the old two columns had number of test observed and another the number of tests expected in the same health facility. These numbers is grouped in week (15 weeks). I want to keep this new column and another new column that have number of tests, and another the week identifications (1,2,3...15) If you have some video about basic r skills with dataframe manipulation, please suggest me

    • @StatistikinDD
      @StatistikinDD 16 дней назад

      ​@@albinonhabanga8066 Yes, installr is a good option. However, going over the 4.4 threshold you might need to re-install your packages. No need to remove the old R version.

    • @StatistikinDD
      @StatistikinDD 16 дней назад

      ​@@albinonhabanga8066 Other channels offer more on data manipulation, e. g. Statistics Globe (Joachim Schork). We have collaborated in the past.

  • @JessiJ-zz7rp
    @JessiJ-zz7rp 21 день назад

    Hallo wie Interpretiere ich denn die restlichen Effekte dann? D.h. Lernstunden alleine nicht signifikant (0,199 > 0,05) und nur in der Interaktion zwischen Lernstunden und Entspannung kann ich signifikanten Lernerfolg nachweisen?

    • @StatistikinDD
      @StatistikinDD 21 день назад

      Im Modell mit Interaktionsterm sind die Einzeleffekte nicht separat zu beurteilen. Ein Teil des Effekts steckt im einzelnen Koeffizienten, ein weiterer Teil im Interaktionsterm. Anschaulicher ist es, konkrete Werte für beide Prädiktoren einzusetzen und Vorhersagen dafür zu berechnen anhand der Regressionsformel.

    • @JessiJ-zz7rp
      @JessiJ-zz7rp 21 день назад

      @@StatistikinDD Danke! Mit p-Wert von 0,199 betrachte und interpretiere ich also auch nicht dessen Regressionskoeffizienten (-0,457), sondern nur den des Interaktionsterms? Gibt es eine Quelle dafür, dass man sich nur Variable des Interaktionsterms ansieht? Wie kann das zustande kommen, dass Lernstunden (x) auf Lernerfolg (y) in diesem Moderationsmodell nicht signifikant ist, wenn angenommen in einem linearen Modell eine Signifikanz zwischen Lernstunden und Lernerfolg (gleicher Datensatz) vorhanden wäre?

    • @StatistikinDD
      @StatistikinDD 21 день назад

      @@JessiJ-zz7rp Die Effekte verändern sich, wenn die Moderation mit berücksichtigt wird. Es ist schließlich ein anderes Modell! Alle Kombinationen sind möglich: einzeln signifikant, im Moderationsmodell nicht, oder umgekehrt, oder beide Mal sig. oder nicht sig. Die grafische Interpretation ist oft einfacher als das Grübeln über die (nicht mehr von einander unabhängigen!) Koeffizienten. Das Modell mit Interaktionsterm testet in erster Linie, ob eine (statistisch signifikante) Wechselwirkung vorliegt.

  • @saimajahan8317
    @saimajahan8317 Месяц назад

    I like that video. I have a question is it possible to add data from a package (which is not mine) to t? If possible, then how?

    • @StatistikinDD
      @StatistikinDD Месяц назад

      You can add any data that you can get in the Global Environment. If it is already in a package, you may also add that package to Suggests or Imports.

    • @StatistikinDD
      @StatistikinDD Месяц назад

      So how: load data into Global Environment. Then proceed as in video. I'm just not sure if I'd like the same data in different packages. But there may be situations where it makes sense. E. g. to avoid dependency on that other package, maybe because it contains a lot more than the data, or because it is difficult to access in your environment.

  • @michael6154
    @michael6154 Месяц назад

    You mentioned your GitHub profile, can you share the link for that? Thanks

  • @Epic-Poetry
    @Epic-Poetry Месяц назад

    That was beautifully explained.

  • @YEHE-ju7wm
    @YEHE-ju7wm 3 месяца назад

    Thank you very much. Do you know how to use test_fun for R package?

    • @StatistikinDD
      @StatistikinDD 3 месяца назад

      Can you give more details? Where do you get stuck?

    • @YEHE-ju7wm
      @YEHE-ju7wm 3 месяца назад

      @@StatistikinDD I previously wrote an article introducing my r package, submitted it to the journal of statistical software, and received the following comment: 2 sample tests are run using TEST_FUN(group1, group2) and no formula version is available (it might be less natural in the multidimensional setting but e.g., Hotelling::hotelling.test implements one which is very clear and easy to use). test_fun is mentioned here, but I am not clearly how to use it

    • @StatistikinDD
      @StatistikinDD 3 месяца назад

      @@YEHE-ju7wm Is TEST_FUN an actual function or maybe just a placeholder for more specific functions?

  • @mrtnzlmn1546
    @mrtnzlmn1546 3 месяца назад

    Da ist was falsch! Wir "sortieren die Vermögen aller in aufsteigender Reihenfolge" und stellen fest, dass die untere Hälfte weniger zur Verfügung hat? Für den Median spielt das keine Rolle, aber die Aussage ist nicht richtig...

    • @StatistikinDD
      @StatistikinDD 3 месяца назад

      Gut aufgepasst, danke für den Hinweis!

  • @deyvismejia7529
    @deyvismejia7529 4 месяца назад

    i'm learning sql but want to do everything in R for convenience. this was very informative as i've seen many other videos show different approaches and packages

  • @Laura_Hiati
    @Laura_Hiati 4 месяца назад

    Thank you.Well explained!

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 4 месяца назад

    Some Excel files are a real challenge to deal with. I found the unheadr package to be helpful in combination with some of the tidyverse packages (tidyr). It also helps to know a little bit about regular expressions (regex).

  • @xeniachomiak857
    @xeniachomiak857 5 месяцев назад

    Vielen Dank! Das hat mir sehr weitergeholfen. Super verständlich erklärt, in einem sehr angenehmen Tempo! :)

  • @shaileshchaskar6093
    @shaileshchaskar6093 5 месяцев назад

    Indeed very Informative

  • @ahmed007Jaber
    @ahmed007Jaber 6 месяцев назад

    thank you for this. I have come across the two packages but never heard about unpivotr::rectify. Thank you for sharing. This is really helpful

  • @tranle5614
    @tranle5614 6 месяцев назад

    Thank you so much. I knew about Quarto when it came out, but I needed convincing to learn it. I read some posts about Quarto to see if I need to use it, but I'm completely convinced after watching your video. Your video is short, but it covers all valuable points.

    • @StatistikinDD
      @StatistikinDD 6 месяцев назад

      Thanks, happy to read that!

  • @Mizantrop.4
    @Mizantrop.4 7 месяцев назад

    Hello friend, in statistics tool in R commander option summaries is blank, and i can't open it. Please give me the solution from this problem.

    • @StatistikinDD
      @StatistikinDD 7 месяцев назад

      Have you specified a dataset? Is the data suitable? Sometimes there may be conflicts with other packages. In such cases, closing Rcmdr, starting a new R session and reopening Rcmdr worked for me.

  • @StatisticsGlobe
    @StatisticsGlobe 7 месяцев назад

    Thanks for this presentation, Wolf! I haven't used quarto yet, so this was a great overview for me.

    • @StatistikinDD
      @StatistikinDD 7 месяцев назад

      Thanks, Joachim! On the one hand, it's fun to dive into new technology. On the other hand, it was another case of "Well, I guess I can throw away my training material on Reporting" when Quarto appeared on the scene ... 🙂

    • @StatisticsGlobe
      @StatisticsGlobe 7 месяцев назад

      @@StatistikinDD haha I know what you mean! :D

  • @langkorn707
    @langkorn707 7 месяцев назад

    Sie erinnern mich an meinen Lieblingsdozenten aus der Uni! Ich habe alle Funktionen schon in GitHub muss jetzt irgendwie richtig verstehen, wie ich diese in das Projekt bringe

  • @pipertripp
    @pipertripp 7 месяцев назад

    I'm pre-liking this. Gotta get some other stuff done first, but will return forthwith.

    • @StatistikinDD
      @StatistikinDD 7 месяцев назад

      Thanks!

    • @StatisticsGlobe
      @StatisticsGlobe 7 месяцев назад

      Thanks for the kind comment, glad you find the topic interesting! :)

  • @raould2590
    @raould2590 8 месяцев назад

    Thank you for this! The both of you are incredibly helpful with all things R! I enjoy your videos and look forward to more.

    • @StatisticsGlobe
      @StatisticsGlobe 7 месяцев назад

      Thank you so much for the kind words Raoul, glad you find our content helpful! :)

  • @tibaredha
    @tibaredha 8 месяцев назад

    Thank you for this series goooooooood job

  • @farnooshsheikhi
    @farnooshsheikhi 8 месяцев назад

    Hi this is really helpful, I was able to follow everything but when documenting the functions I got an error on "sew" in package knir . the man file wasn't created. I have 3 functions in one script

    • @StatistikinDD
      @StatistikinDD 8 месяцев назад

      Can you post the full error message? At what exact moment does it appear?

  • @user-sy9hj3zf7d
    @user-sy9hj3zf7d 9 месяцев назад

    Hi, mein kommt der Fehler (X11) ist für meine Version nicht verfügbar was kann ich machen?

    • @StatistikinDD
      @StatistikinDD 9 месяцев назад

      Hört sich nach Apple an. Habe keine Erfahrung mit Rcmdr auf iOS. Vielleicht helfen die Hinweise hier: www.john-fox.ca/RCommander/installation-notes.html

  • @huiqiao5251
    @huiqiao5251 9 месяцев назад

    Thank you so much for loading the videos, they have been super helpful! I tried Build -> More -> Load All and got this error message. The folder did have the processx and processx.rdb files, so I'm not sure what the error means. Could you please advise? Error in gzfile(file, "rb") : cannot open the connection In addition: Warning message: In gzfile(file, "rb") : cannot open compressed file '\\mypackages/processx/R/processx.rdx', probable reason 'No such file or directory' Error: unable to load R code in package ‘processx’meaasge

    • @StatistikinDD
      @StatistikinDD 9 месяцев назад

      Hi, I'm on holidays, just a quick idea: maybe an invalid file path? I think I got similar problems when my file path contained spaces.

  • @user-ve3no9pm9w
    @user-ve3no9pm9w 10 месяцев назад

    wow, glad I dont use Stata, how inconvenient. great vid as always

  • @taitai645
    @taitai645 11 месяцев назад

    Crystal clear

  • @Ramira1407
    @Ramira1407 11 месяцев назад

    Vielen Dank für die Erklärung 🎉👍👍

  • @user-mh2pu1pe2n
    @user-mh2pu1pe2n 11 месяцев назад

    Thanks, these videos are very good and I have created a package by following your instructions. My package is in a private github repo now. May I ask how do other users now access this library and use the functions? Do you have a video for that? Thank you very much!

    • @StatistikinDD
      @StatistikinDD 11 месяцев назад

      To install from a private repo, you (i. e. potential users of your package) need to provide authentication. I wouldn't spread authentication information, so if I wanted others to access my package, I'd make the repo public. Maybe it helps if you have a private repo where you try out things, and a public repo containing a version you feel ok about being public?

  • @CanDoSo_org
    @CanDoSo_org 11 месяцев назад

    Hi, guys. I got a strange problem. Some shortcuts work in Rmarkdown, but not in Quarto. For example, Insert Assignment Operator, Insert Pipe Operator. Anyone runs into the same problem?

    • @StatistikinDD
      @StatistikinDD 11 месяцев назад

      Hi, haven't noticed that. What is your setup? Operating system, R version, quarto version, RStudio (?) version. For the quarto version, you can install the quarto R package. (Not a replacement for the quarto software, just a small interface.) Then use quarto::quarto_version().

    • @CanDoSo_org
      @CanDoSo_org 11 месяцев назад

      @@StatistikinDD Thanks a lot. Problem solved by updating Quarto. Thanks man. But one more question: is there a way to automatically update the Quarto? I don't even know my Quarto is out of date if you did not mention it.

    • @StatistikinDD
      @StatistikinDD 11 месяцев назад

      ​@@CanDoSo_org Not aware of an automatic update, not from within R anyway. Quarto gets bundled with RStudio, so when you update that, you may get a new quarto version as well. You can install daily builds of RStudio to get quicker updates. (I don't do that.) Apart from that, I sometimes check the quarto website and manually download quarto.

    • @CanDoSo_org
      @CanDoSo_org 11 месяцев назад

      @@StatistikinDD Thanks a lot.

  • @santiagosotelo6881
    @santiagosotelo6881 11 месяцев назад

    good info the argument device = agg_png instead of calling dev.on() - dev.off()

  • @user-mh2pu1pe2n
    @user-mh2pu1pe2n Год назад

    Thanks this is great! Would you know what the problem is with Error in .get_package_metadata(pkgdir) : Files 'DESCRIPTION' and 'DESCRIPTION.in' are missing

    • @StatistikinDD
      @StatistikinDD Год назад

      Do you have a DESCRIPTION text file at the top level of the package? Did you create the package using RStudio - New Project - Package?

    • @user-mh2pu1pe2n
      @user-mh2pu1pe2n Год назад

      @@StatistikinDD Thanks for your prompt reply! yes i do have a DESCRIPTION text file at the top level and I am creating the package using RStudio - New Project - Package.

    • @StatistikinDD
      @StatistikinDD Год назад

      @@user-mh2pu1pe2n Looks like a known issue. github.com/rstudio/rstudio/issues/12945 github.com/r-lib/devtools/issues/2512 Maybe try updating as much as possible, e. g. RStudio, devtools, pkgbuild

    • @user-mh2pu1pe2n
      @user-mh2pu1pe2n Год назад

      @@StatistikinDD Thank you!

  • @AestheticWaif
    @AestheticWaif Год назад

    March 💂 First lmao

  • @ricardito777
    @ricardito777 Год назад

    Thank you very much for this video! I am at the starting stage of my career and have only done data analysis from within a large corporation. However, there were many aspects of your experience that I could relate to like inheriting code and having to deal with Office format deliverables. I will follow you on twitter.

  • @Feeyful
    @Feeyful Год назад

    Dieses Video hat mir so sehr geholfen, vielen Dank!

  • @StatistikinDD
    @StatistikinDD Год назад

    Neu und besser: Adapter %dofuture% statt %dopar% Siehe www.jottr.org/2023/06/26/dofuture/ Dank an Henrik Bengtsson

  • @Laura-lh7xg
    @Laura-lh7xg Год назад

    Danke!

  • @MrBsir390
    @MrBsir390 Год назад

    what's funnier a Robot Telling jokes to Humans or Trump getting arrested by his own Rules concerning classified docs when he was president?

  • @anmolpardeshi3138
    @anmolpardeshi3138 Год назад

    how is the function accessing the DV even without mentioning it while calling the function?

    • @StatistikinDD
      @StatistikinDD Год назад

      Good question. The DV is hard-coded in the function and so not passed on as a function parameter. Line 14: model <- as.formula(paste("result ~", IV)) DV = result for all the models calculated here. Only the IV varies.

    • @anmolpardeshi3138
      @anmolpardeshi3138 Год назад

      @@StatistikinDD so the functions have access to local memory meaning they "know" where the result variable is stored?

    • @StatistikinDD
      @StatistikinDD Год назад

      @@anmolpardeshi3138 Functions can access R's Global Environment. The result variable (DV) is part of the dataset which is specifiied in the call to lm(), which accesses Global Environment. Note that, however, the workers for running the loops in parallel do not automatically have access to the Global Environment in this approach, at least on Windows. Each worker starts in an empty environment. So the data (and the reg function) are exported to the workers using the clusterExport function in this line of code: clusterExport(cl, c("reg", "data")) cl is the object resulting from the makeCluster call. I'd now recommend this approach: cl <- makeCluster(parallelly::availableCores(omit = 1)) See comment below and a later video on why to avoid detectCores(). ruclips.net/video/EYpuUKsGqPQ/видео.html

  • @robRobblah
    @robRobblah Год назад

    Thanks for the video. very helpful. Looks promising, but for use cases where controlled page layout is critical (posters, "one pagers", brochures, etc), it seems maybe we'll have to wait for paged HTML support ala pagedown?

    • @StatistikinDD
      @StatistikinDD Год назад

      Currently I'm lacking experience in that. Read that fixed width and toggling with self-contained / embed-resources may help in PDF output stability. Thanks to Nicola Rennie.

  • @alvaroignaciotapia
    @alvaroignaciotapia Год назад

    Thanks for this brillian tutotial, I have a quesstion though: is it ok that I save the generated .tar file in my R package directory on my Desktop? Before ubmitting to CRAN. Because I assume that if I save the .tar file elsewhere, and submit my directory to CRAN, the vignette won't come up on the help tab, right? THANKS!

    • @StatistikinDD
      @StatistikinDD Год назад

      Hi, thanks for your feedback! For CRAN submission, you upload a tar.gz file to CRAN, which contains the vignette. From the R Packages book at r-pkgs.org/vignettes.html#sec-vignettes-how-built-checked Prepare built vignettes for a CRAN submission: Don’t try to do this by hand or in advance. Allow vignette (re-)building to happen as part of devtools::submit_cran() or devtools::release(), both of which build the package.

  • @markvenn230
    @markvenn230 Год назад

    So helpful. Many thanks, subscribed to see what else you can help with

  • @HDBT_
    @HDBT_ Год назад

    It works really great, thank you sharing this!

  • @robertzimbardo8227
    @robertzimbardo8227 Год назад

    Why do you waste so much time on explaining what the function inhouse_calc does? No one cares it scales, no one cares it's not exactly between 0 and 100, etc. The video title says this is about including data in your R package so it would be better to focus on that and leave everything distracting aside.

    • @StatistikinDD
      @StatistikinDD Год назад

      Thanks for your comment, Robert. I'll try to stick more to the point next time.

    • @marwanotrok4311
      @marwanotrok4311 Год назад

      @@StatistikinDD Clearly explained and straight to point. Saved me a lot of time just by watching this video. Thank you!

    • @sametayaz4891
      @sametayaz4891 Год назад

      You have a very logical point but some information about other stuff comes with main topic's wind. You don't just go from point a to b. You also see where the supermarket on your way to point b. This kind of informations is crucial for some people, and showing it with a realistic and alive example is also important. You can simply skip it. Anyways. Great tutorial @StatistikinDD keep it rooling!

  • @soumyatarafder7656
    @soumyatarafder7656 Год назад

    Great!

  • @uttammitra5683
    @uttammitra5683 Год назад

    great explanation!

  • @blaisepascal3905
    @blaisepascal3905 Год назад

    Thank you very much for your videos, I subscribed to the channel! Lately, I've been trying to convince my friends and colleagues in a subliminal way to go from Rmarkdown to Quarto. The arguments you presented are exactly what I was missing, thank you! I also have 2 questions: 1. Xarigan presentations are what prevent me from transferring all my remaining rmd to qmd. You said that reveal.js works pretty well on Quarto, is there a feature that is missing compared to Xarigan? 2. You said that Quarto could support languages that do not yet exist yet. I am also a Nim user, is it possible to use Nim in it and what would be the missing functionalities since the language has not been implemented yet? Again thank you for your video!

    • @StatistikinDD
      @StatistikinDD Год назад

      Thank you for your comment! Much appreciated. I still use xaringan when I need a pdf version. Had difficulties printing quarto/ reveal.js to pdf. Heard fixed width and toggling self-contained true/false could help. Haven't tried yet. For HTML, I really like reveal.js. Can't say about Nim, sorry. Maybe ask Posit forum.

  • @mikiallen7733
    @mikiallen7733 Год назад

    Where I can find a library in r which does very good visuals for the results of quantile regression ? More specifically for plotting which factors affect which quantile / sub group out of the whole sample ?

    • @StatistikinDD
      @StatistikinDD Год назад

      Check out the quantreg package. It has a plot function for quantile regression objects. Haven't used it myself though.

  • @pjoshi_15
    @pjoshi_15 Год назад

    Great video! Any idea on how to customize an individual page's URL in quarto?

    • @StatistikinDD
      @StatistikinDD Год назад

      Sorry, don't know. So far I've only used it for presentations.

  • @soren-1184
    @soren-1184 Год назад

    I don't have the git option, for some reason.

    • @StatistikinDD
      @StatistikinDD Год назад

      That requires a git installation - separate software. Download for free.