Universal estimation with Maximum Mean Discrepancy (MMD)

[This article was first published on YoungStatS, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. This is an updated version of a blog post on RIKEN AIP Approximate … Read more

Categories R Tags ExcerptFavorite

Handling Categorical Data in R – Part 3

This is part 3 of a series on “Handling Categorical Data in R where we are learning to read, store, summarize, visualize & manipulate categorical data..” In part 1 and part 2 of this series, we understood how R stores categorical data using factor and got an overview of tables in R while learning to … Read more

Categories R Tags ExcerptFavorite

match Function in R with examples

[This article was first published on Methods – finnstats, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. ShareTweet The post match Function in R with examples appeared first … Read more

Categories R Tags ExcerptFavorite

Handling Categorical Data in R – Part 2

This is part 2 of a series on “Handling Categorical Data in R where we are learning to read, store, summarize, visualize & manipulate categorical data..” In part 1 of this series, we understood what categorical data is, how R stores it using factor and got an overview of the case study we will be … Read more

Categories R Tags ExcerptFavorite

{emayili} HTML Messages with Images

[This article was first published on R – datawookie, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. No two email clients are equal. Nowhere is this more true … Read more

Categories R Tags ExcerptFavorite

How To Connect R Shiny to Postgres Database – The Definite Guide

Managing database connections can be messy at times. It’s always easier to read and write to local CSV files. That doesn’t mean it’s the right thing to do, as most production environments have data stored in one or multiple databases. As a data professional, you must know how to connect to different databases through different … Read more

Categories R Tags ExcerptFavorite

Index Names and lapply Function in R

[This article was first published on Methods – finnstats, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. The post Index Names and lapply Function in R appeared first … Read more

Categories R Tags ExcerptFavorite

Gather on the rOpenSci Forum

Do you have an account on the rOpenSci forum? As underlined in our contributing guide, our forum is where we encourage Q&A and exploration of ideas on a various range of topics. Compared to our Slack semi-open workspace, the forum is entirely open and much easier to search, so a great place to gather some … Read more

Categories R Tags ExcerptFavorite

Rating Each Drivers 2021 Season – 20 – 11

[This article was first published on Sport Data Science, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. Hello and happy new year. Hope you have a nice cup … Read more

Categories R Tags ExcerptFavorite

How to use the dollar sign ($) in R

[This article was first published on Methods – finnstats, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. The post How to use the dollar sign ($) in R … Read more

Categories R Tags ExcerptFavorite

blind monty hall

[This article was first published on R – Xi’an’s Og, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. As I was waiting for my boat on a French … Read more

Categories R Tags ExcerptFavorite

RObservations #22: Creating a Simple Blockchain with R6 Objects

[This article was first published on r – bensstats, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. With my recent breakthrough in figuring out how OOP works in … Read more

Categories R Tags ExcerptFavorite

A new way to discover R Programming books!

With over 250 books (and counting) in the Big Book of R collection, you could easily overlook a lot of useful ones. Sometimes you see a book and think “Hey that’ll be pretty useful if I ever work on [subject]” but when that time comes you’ve completely forgotten about it. It could also happen that … Read more

Categories R Tags ExcerptFavorite

Finally understanding what “statistical significance” and p-values mean: A simple example (with R code)

One day I realized that I finally really understood what “statistical significance” means (p .01). I had probably heard the term hundreds of times by then. If you are still struggling with the concept, I hope it doesn’t take you this long and perhaps this post can be of help. The article will be quite … Read more

Categories R Tags ExcerptFavorite

Wordle Words and Expected Value

Like many people, I’ve gotten sucked into wordle. For those unfamiliar with the game, you are tasked with identifying a five-letter word. You input a guess (which must be a five-letter word) and are told whether each letter in your guess is: not in the word (black square) in the word but in a different … Read more

Categories R Tags ExcerptFavorite

Using bayesian optimisation to tune a XGBOOST model in R

[This article was first published on R’tichoke, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. My first post in 2022! A very happy new year to anyone reading … Read more

Categories R Tags ExcerptFavorite

Future Improvements During 2021

[This article was first published on JottR on R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. Happy New Year! I made some updates to the future framework … Read more

Categories R Tags ExcerptFavorite

Handling Categorical Data in R – Part 1

This is part 1 of a series on “Handling Categorical Data in R.” Almost every data science project involves working with categorical data, and we should know how to read, store, summarize, visualize & manipulate such data. Working with categorical data is different from working with other data types such as numbers or text. In … Read more

Categories R Tags ExcerptFavorite

How to do Uniform Distribution in R

[This article was first published on Methods – finnstats, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. The post How to do Uniform Distribution in R appeared first … Read more

Categories R Tags ExcerptFavorite

Reconciling the Gaussian and Whittle Likelihood with an application to estimation in the frequency domain

[This article was first published on YoungStatS, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. Overview Suppose \(\{X_t: t\in \mathbb{Z}\}\) is a second order stationary time series where … Read more

Categories R Tags ExcerptFavorite

How renv restores packages from r-universe for reproducibility or production

This post is part of a series of technotes about r-universe, a new umbrella project by rOpenSci under which we experiment with various ideas for improving publication and discovery of research software in R. As the project evolves, we will post updates to document features and technical details. For more information, visit the r-universe project … Read more

Categories R Tags ExcerptFavorite

Wordless Song: Benchmarking Wordle performance using R

[This article was first published on Rstats – quantixed, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. A quick post about a puzzle called Wordle that is currently … Read more

Categories R Tags ExcerptFavorite

Why R? Foundation 2022-01-05 10:18:19

[This article was first published on Why R? Foundation, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. On Thursday, February 25th at 7 pm UTC | 8 pm … Read more

Categories R Tags ExcerptFavorite

MANOVA in R – How To Implement and Interpret One-Way MANOVA

The R programming language packs a rich set of statistical functions. It makes it easy to do any kind of statistical test, including the analysis of variance. Today you’ll learn all about MANOVA in R, and apply it to a real dataset. We’ll start with the theory and discuss use-cases in which you should consider … Read more

Categories R Tags ExcerptFavorite

Using R to create column charts featuring 95% confidence intervals

Daniel Weiland – Consultant Medical Microbiologist – Newcastle upon Tyne NHS Foundation Trust Hello! This is my first blog post for the NHS R Community, which I stumbled across in the course of my work as a consultant medical microbiologist at Newcastle upon Tyne Hospitals NHS Foundation Trust. At work, I’ve been trying to use … Read more

Categories R Tags ExcerptFavorite

Simple examples to understand what confounders, colliders, mediators, and moderators are and how to “control for” variables in R with regression and propensity-score matching

In a hospital, 9% of all patients have Covid-19. But: Among the heavy smokers among these patients, only 6% have Covid-19. What? Does smoking reduce your risk of getting Covid? Another example: I recently saw a post on Twitter with a line graph showing that, in the UK, persons aged 18 to 59 who were … Read more

Categories R Tags ExcerptFavorite

R Studio with great new feature – multiple code panes

[This article was first published on R – TomazTsql, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. With October 2021 version of R Studio (2021.09.1 Preview) a great … Read more

Categories R Tags ExcerptFavorite

Google Season of Docs with R: useR! Information Board

[This article was first published on cynkra, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. “Google Season of Docs (GSoD) provides support for open source projects to improve … Read more

Categories R Tags ExcerptFavorite

Making your first plot in R

[This article was first published on R on R (for ecology), and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. With the new year, I’m hoping more of you … Read more

Categories R Tags ExcerptFavorite

Most popular posts – 2021

[This article was first published on R – Eran Raviv, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. Kind of sad, but the same intro which served last … Read more

Categories R Tags ExcerptFavorite

Naive Approach Forecasting Example

[This article was first published on Methods – finnstats, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. The post Naive Approach Forecasting Example appeared first on finnstats. If … Read more

Categories R Tags ExcerptFavorite

Systematic Sampling in R with example

[This article was first published on Methods – finnstats, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. The post Systematic Sampling in R with example appeared first on … Read more

Categories R Tags ExcerptFavorite

Announcing mlr3spatial

[This article was first published on Machine Learning in R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. We are happy to announce that mlr3spatial has been released … Read more

Categories R Tags ExcerptFavorite

Interview with Oscar Baruffa, Creator of the Big Book of R

[This article was first published on R Views, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. Welcome to the new year! If you’re itching to improve your R … Read more

Categories R Tags ExcerptFavorite

I invented something better than wordclouds. True or False?

[This article was first published on HighlandR, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. The world’s going to pot. People who shouldn’t be in charge of jumble … Read more

Categories R Tags ExcerptFavorite

Natural Gas Prices Fall 42% in 3 Months Following Breach of ‘Nonlinear Stealth Support’

[This article was first published on R-posts.com, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. The below earlier LinkedIn post of well-defined nonlinear Stealth Support indicated price evolution … Read more

Categories R Tags ExcerptFavorite

SurvCART: Constructing Survival Tree in R

[This article was first published on R-posts.com, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. [Author: Madan G. Kundu] In practice, survival times may be influenced by a … Read more

Categories R Tags ExcerptFavorite

How to perform Eta Squared in R

[This article was first published on Methods – finnstats, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. The post How to perform Eta Squared in R appeared first … Read more

Categories R Tags ExcerptFavorite

Using Arrow with Shiny

[This article was first published on Pachá, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. This post is an adaptation from Using databases with Shiny. Shiny apps are … Read more

Categories R Tags ExcerptFavorite

Uncovered Interest Rate Parity and F-test on Regression Parameters using R

  #———————————————–   # F test by using linearHypothesis()   #———————————————–   # H0 : b2/b1 = Nelson-Siegel slope factor   #      b3/b1 = Nelson-Siegel curvature factor   #———————————————–     NS_slope – (1–exp(–lambda*tau))/(lambda*tau)     NS_curvature – NS_slope – exp(–lambda*tau)          H0 – c(paste0(“slope_can=”,NS_slope,“*level_can”),              paste0(“curvature_can=”,NS_curvature,“*level_can”))          # F test for coefficients restrictions     linearHypothesis(reg.U, H0)        #———————————————–   # F test by mannual calculation   #———————————————–   # H0 : b2/b1 = Nelson-Siegel slope factor   #      b3/b1 = Nelson-Siegel curvature factor   #———————————————–     # restricted regression model     reg.R – lm(exr_can3 ~ I(level_can +                      NS_slope*slope_can +                      NS_curvature*curvature_can),                  data = df.data, na.action = na.omit)          # input variables for F-test     T – length(reg.U$residuals)    # # of observations     K – length(reg.U$coefficients) # # of parameters     J – 2                          # # of restrictions            # residual sum of squares     RSSU – sum(reg.U$residuals^2)     RSSR – sum(reg.R$residuals^2)          # calculated F-test statistic     F_test – ((RSSR – RSSU)/J)/(RSSU/(T–K))          # 95% critical value and p-value     qf(.95, df1=J, df2=(T–K))        # 95% critical value     1 – pf(F_test, df1=J, df2=(T–K)) # p-value Favorite

Categories R Tags ExcerptFavorite

How to perform the Sobel test in R

[This article was first published on Methods – finnstats, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here) Want to share your content on R-bloggers? click here if you have a blog, or here if you don’t. The post How to perform the Sobel test in R appeared … Read more

Categories R Tags ExcerptFavorite

Using databases with Shiny

Shiny apps are R’s answer to building interface-driven applications that help expose important data, metrics, algorithms, and more with end-users. However, the more interesting work that your Shiny app allows users to do, the more likely users are to want to save, return to, and alter some of the ways that they interacted with your … Read more

Categories R Tags ExcerptFavorite