• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Rstats 101

Learn R Programming Tips & Tricks for Statistics and Data Science

  • Home
  • About
    • Privacy Policy
  • Show Search
Hide Search

R Function

How to Compute Pearson Correlation of Multiple Variables

rstats101 · August 31, 2024 ·

In this tutorial, we will learn how to compute Pearson correlation of multiple variables. We will use two approaches to compute Pearson correlation of multiple variables in a matrix or dataframe. First we will show how to use cor() function in R to compute Pearson correlation … [Read more...] about How to Compute Pearson Correlation of Multiple Variables

Filed Under: cor() in R, rstats101 Tagged With: Pearson correlation, Pearson correlation by matrix multiplication

T-test on real data using tidyverse

rstats101 · August 28, 2024 ·

In this post, we will learn how to perform t-test on a real dataset and use tidyverse framework to access results from t-test. Check out the post how to do t-test to learn base R approach to t-tes. We will use Palmer penguin dataset, a real world dataset, to show how to … [Read more...] about T-test on real data using tidyverse

Filed Under: rstats101, t.test(), tidyverse Tagged With: t-test with tidyverse

How to perform t-test in R

rstats101 · August 27, 2024 ·

Applying t-test on two groups with clear difference in mean values

In this post, we will learn how top perform t test in R and understand when and why to use it. A t-test is one of the commonly used statistical tests, when one is interested in comparing two groups of measures and determine if there is a significant difference between the mean … [Read more...] about How to perform t-test in R

Filed Under: rstats101, t.test() Tagged With: t test in R

How to Find difference between two dates as days, weeks, months and years

rstats101 · July 19, 2024 ·

In this tutorial we will learn how to find the difference between two date objects in R in terms of days, months, and years. We will learn how to use time_length() function available in tidyverse as part of lubridate package to get the difference as dyas, weeks, months, and … [Read more...] about How to Find difference between two dates as days, weeks, months and years

Filed Under: rstats101, time_length() function Tagged With: time difference as years

How to compute annualized return of a stock with tidyverse

rstats101 · July 2, 2024 ·

Yearly returns

In this tutorial, we will learn how to compute annualized return of stock using tidyverse from scratch. Annualized return of an investment is the average returns of the investment that is held over many years. In comparison to simple mean of yearly returns, annualized return is … [Read more...] about How to compute annualized return of a stock with tidyverse

Filed Under: prod(), rstats101 Tagged With: Compute Annualized Return

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Interim pages omitted …
  • Page 8
  • Go to Next Page »

Primary Sidebar

Recent Posts

  • How to create a nested dataframe with lists
  • How to compute proportion with tidyverse
  • How to Compute Z-Score of Multiple Columns
  • How to drop unused level of factor variable in R
  • How to compute Z-score

Categories

%in% arrange() as.data.frame as_tibble built-in data R colSums() R cor() in R data.frame dplyr dplyr across() dplyr group_by() dplyr rename() dplyr rowwise() dplyr row_number() dplyr select() dplyr slice_max() dplyr slice_sample() drop_na R duplicated() gsub head() impute with mean values is.element() linear regression matrix() function na.omit R NAs in R near() R openxlsx pivot_longer() prod() R.version replace NA replace NAs tidyverse R Function rstats rstats101 R version scale() sessionInfo() t.test() tidyr tidyselect tidyverse write.xlsx

Copyright © 2025 · Daily Dish Pro on Genesis Framework · WordPress · Log in

Go to mobile version