Average Joe Statistics
Average Joe Statistics
  • 24
  • 20 685
Advanced R Programming - R Packages
Building your own R packages, unit testing, automatic documentation, automatic checks. What happens on your computer when you install an R package.
Code:
github.com/averagejoestats/advancedR/tree/main/package
Переглядів: 924

Відео

Advanced R - Multiple Linear Modeling of Ames Housing Data
Переглядів 5709 місяців тому
Code: raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/modeling.R Data: raw.githubusercontent.com/averagejoestats/advancedR/main/datasets/ames_housing.csv
Advanced R - Logistic Regression of Titanic Survival Data
Переглядів 4859 місяців тому
Code: raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/modeling.R Data: raw.githubusercontent.com/averagejoestats/advancedR/main/datasets/titanic5.csv
Advanced R Programming - Data Science with dplyr (tidyverse)
Переглядів 9669 місяців тому
Operations on data frames using the dplyr R package, which is part of the tidyverse set of R packages. Subset columns using "select", subset rows using "filter", summary statistics using "group_by" and "summarize", joining data frames using "left_join" and "inner_join" Code raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/dplyr.R Men's Marathon Dataset (used in video): raw.gi...
Advanced R Programming - Machine Learning Optimization
Переглядів 1,2 тис.10 місяців тому
Introduction to continuous optimization relevant to machine learning and statistics. Newton's method, gradient descent, fisher scoring. Code: raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/cont_optimization.R Notes: github.com/averagejoestats/advancedR/blob/main/video_code/continuous_optimization.pdf
Advanced R Programming - Floating Point Numbers
Переглядів 35010 місяців тому
Ever wondered how decimal numbers get represented on your computer? We demystify the floating point number system. It's really not as complicated as you might think! Code: raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/numbers.R This video follows Chapter 2 of Monahan's Numerical Methods of Statistics: www.cambridge.org/core/books/numerical-methods-of-statistics/ED2D1845F52...
Advanced R Programming - Performance
Переглядів 90710 місяців тому
How to write fast R code. General principles. Profiling (timing) code with profvis. Extended example processing a large dataset. Code: raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/performance.R raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/performance_funs.R This course roughly follows "Advanced R" by Hadley Wickham. This book is worth reading cover ...
Advanced R Programming - Graphics
Переглядів 58710 місяців тому
Understanding how graphics devices work in R. How to save plots directly to pdf, jpg, jpeg, and png. Modifying graphical parameters for fine-scale control over plots. Comments Only: (use this to follow along and type in code yourself): github.com/averagejoestats/advancedR/blob/main/video_code/graphics_blank.R Code with Comments: github.com/averagejoestats/advancedR/blob/main/video_code/graphics...
Advanced R Programming - Fixing Bugs
Переглядів 52211 місяців тому
Methods for finding and fixing bugs. Traditional print statements. Accessing R's powerful debugging mode using the debug function, the browser function, and code breakpoints in Rstudio. Comments Only: (use this to follow along and type in code yourself): github.com/averagejoestats/advancedR/blob/main/video_code/debugging_blank.R Code with Comments: github.com/averagejoestats/advancedR/blob/main...
Advanced R Programming - Handling Errors
Переглядів 79411 місяців тому
Handle errors with try and tryCatch. Generate your own custom error and warning messages in your functions. Comments Only: (use this to follow along and type in code yourself): github.com/averagejoestats/advancedR/blob/main/video_code/errors_blank.R Code with Comments: github.com/averagejoestats/advancedR/blob/main/video_code/errors.R This course roughly follows "Advanced R" by Hadley Wickham. ...
Advanced R Programming - Input / Output
Переглядів 98711 місяців тому
Reading in data using read.table, read.csv, and load. Printing output to the screen using print and cat. Formatting character strings using paste and sprintf. Writing data to files using write.csv, save, and saveRDS. Comments Only: (use this to follow along and type in code yourself): raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/input_output_blank.R Code with Comments: ra...
Advanced R Programming - Defining and Calling Custom Functions
Переглядів 1,5 тис.11 місяців тому
How to define a custom function, use multiple arguments, and set default arguments. Comments Only: (use this to follow along and type in code yourself): raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/functions_defining_blank.R Code with Comments: raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/functions_defining.R This course roughly follows "Advanced R"...
Advanced R Programming - Variable Scoping in Functions
Переглядів 71711 місяців тому
The functions's environment and the hierarchy of R environments. How R looks up objects in functions. What happens with functions that return other functions. Comments Only: (use this to follow along and type in code yourself): raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/functions_scoping_blank.R Code with Comments: raw.githubusercontent.com/averagejoestats/advancedR/mai...
Advanced R Programming - Subsetting Vectors, Matrices, and Arrays
Переглядів 77311 місяців тому
Various ways to subset atomic objects in R (vectors, matrices, and arrays), including the use of indices, names, and logical vectors. Comments Only: (use this to follow along and type in code yourself): raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/subsetting_vectors_blank.R Code with Comments: raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/subsetting_...
Advanced R Programming - Subset Lists and Data Frames
Переглядів 61511 місяців тому
Various ways to subset lists and data frames in R, including the use of indices, names, and logical vectors. Explain the difference between single and double square brackets. Comments Only: (use this to follow along and type in code yourself): raw.githubusercontent.com/averagejoestats/advancedR/main/video_code/subsetting_lists_dfs_blank.R Code with Comments: raw.githubusercontent.com/averagejoe...
Advanced R Programming - Lists
Переглядів 1 тис.Рік тому
Advanced R Programming - Lists
Advanced R Programming - atomic vectors, matrices, and arrays
Переглядів 3,2 тис.Рік тому
Advanced R Programming - atomic vectors, matrices, and arrays
Introduction to R Programming - Handy Functions Part 2 - apply and strings
Переглядів 300Рік тому
Introduction to R Programming - Handy Functions Part 2 - apply and strings
Introduction to R Programming - Handy Functions Part 1
Переглядів 831Рік тому
Introduction to R Programming - Handy Functions Part 1
Introduction to R Programming - Graphics
Переглядів 685Рік тому
Introduction to R Programming - Graphics
Intro to R Programming - Writing Functions
Переглядів 738Рік тому
Intro to R Programming - Writing Functions
Introduction to R Programming - Flow Control & Style
Переглядів 397Рік тому
Introduction to R Programming - Flow Control & Style
Intro to R Programming - Basic Data Structures
Переглядів 509Рік тому
Intro to R Programming - Basic Data Structures
Intro To R Programming - Your First R Session
Переглядів 1,1 тис.Рік тому
Intro To R Programming - Your First R Session

КОМЕНТАРІ

  • @RizwanIshakthesinister
    @RizwanIshakthesinister 2 дні тому

    You held my attention for one full hour. Thank you!

  • @RizwanIshakthesinister
    @RizwanIshakthesinister 2 дні тому

    Thank you! That was very well explained!

  • @bunkoti
    @bunkoti 8 днів тому

    Hello @AverageJoeStats, is there a future for statistical analysts using R/Python, given that AI tools can manipulate lists, dataframes very easily and also carry out complex statistical analysis beyond linear regression?

  • @SG-wt2dh
    @SG-wt2dh 22 дні тому

    Thank you so much. I am refreshing my R skills after grad school and your stuff is a great foundational refresher! Much appreciated.

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

    I may be alone on this but I find this stuff extremely boring.

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

    Interesting but all this sprintf stuff seems obsolete given that we have the glue package.

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

    I believe setwd is frowned upon by the R gods. They suggest using here from the here package instead.

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

    Why not use testthat to test the function?

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

    I don't see how [ ] or [ ] would do partial matching. It is looking for an index integer. Besides that partial match such as A[["ma"]] might confuse someone reading the code.

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

    Subsetting is one of the most boring things about learning coding in any language. However, it is like fish oil you have to take it. The question is how can one teach it without leaving a bad taste in a learner's mouth?

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

    Curiosity killed the forcats

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

    If you output the results for the list and c() to an html it will no longer show the equation but rather something like <srcref: file "" chars 1:37 to 1:51>. What is needed to fix that? Some sort of yml setting? (I am using Quarto).

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

    Regarding the assignment operator makes more sense to me from a mathematical standpoint when we have x <- x + y vs x = x + y. The latter implies that the two sides are equal and they are not.

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

    So atomic is taken from the definition of atom from the Greeks where the word means "indivisible"? It is not clear to me what it means in R though. What exactly is indivisible? The element tag or position? In the 1:10 plenty of the numbers are divisible.

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

    Very nice. Any reason why you are avoiding pipes?

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

    Could you please make videos on Shiny and Ggplot🥺

  • @HenriqueCosta-z5p
    @HenriqueCosta-z5p 3 місяці тому

    I don't know why such few people are watching / commenting on these series of videos. This is spectacular. I've been programming in R, Python and C for a while new, but it's useful to keep studying it in order not to do a few things the least efficient way. Learning a great deal. Congrats and keep up the great work.

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

    I really like this video. Thanks for sharing. It does help me a lot on error handling.

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

    @8:33 If its a number or any string with spaces then it must be on 'single' or "double quotes" OR `back ticks`

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

    This was clearly explained. I watched the Ads as a form of gratitude. Thanks.

  • @qijialiao2576
    @qijialiao2576 9 місяців тому

    great, I am following your videos on advanced R.

  • @reynaldocdelcastillo975
    @reynaldocdelcastillo975 9 місяців тому

    Great Video and great series for what I see, it would be nice if you put index the parts of the video with what you're explaining.

  • @krushnachChandra
    @krushnachChandra 9 місяців тому

    already subscribed

  • @krushnachChandra
    @krushnachChandra 9 місяців тому

    new sub

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

    I love these videos. I wish I can like and subscribe a million times!

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

    Thank you Joe for this amazing lecture, I needed it!

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

    wow! thank you so much, this is exaclty what I was looking for!!

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

      Hi Mathieu, glad you like the videos, and good luck on your learning. Once you finish this course and get some more experience, check out our second course on advanced R programming. ua-cam.com/play/PLqQjbBX7bZ0dcmFvv_t9iQnCrO6LHU1IF.html

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

    Just want to say I've really been enjoying your videos. Very happy to have found them. Very educational. Thanks a lot, good sir

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

      Glad you are enjoying them! Congrats on taking the time to invest in yourself and your learning.

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

    I was looking for a course following wickhams book thanks

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

    Hey thanks joe

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

    Love these videos

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

    *PromoSM*

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

    Great content. Easy to follow teaching style. After trying a lot of online tutorials as a non-programmer, no formal training in stats r programming, this tutorial series is with-in my reach. Thank you.

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

      Thanks! I'm glad you and others are finding the videos useful.

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

    Great tips on performance tuning, methodology will translate to other programming languages as well.

  • @bohdandanylko2006
    @bohdandanylko2006 11 місяців тому

    Hello. Do you have any plans to make a course or videos about ggplot in the future? I've started to learn R. I know it's is quite a popular package. Your videos are very good and detailed.

    • @AverageJoeStats
      @AverageJoeStats 11 місяців тому

      I would like to do one in the future. The next video will be about base R graphics. I think it's important to do that first. Perhaps I will do a later video on ggplot. Thanks for watching.

  • @azad2546421
    @azad2546421 11 місяців тому

    Very good explanation

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

    you should DOUBLE the size of your fonts

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

    Fantastic playlist! Thanks for sharing.