• 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

rstats

How to Extract p-values from multiple simple linear regression models

rstats101 · October 12, 2022 ·

Sometimes you might fit many simple linear regression models and would like to extract p-values from each model. In this tutorial, we will learn two approaches to extract p-values from multiple simple linear regression models built in R. We will first use for loop to build and … [Read more...] about How to Extract p-values from multiple simple linear regression models

Filed Under: lapply() function, linear regression Tagged With: extract p-values from many models

How to extract residuals from a linear regression model

rstats101 · October 2, 2022 ·

In this tutorial, we will learn how to extract residual values from a linear regression model in R. Residuals are values that is remaining after adjusting or subtracting effects of variable in the model. We will see two approaches to pull residuals from linear regression model … [Read more...] about How to extract residuals from a linear regression model

Filed Under: linear regression, rstats Tagged With: augment() broom, extract residual from linear regression fit

How to get p-value from linear regression model

rstats101 · September 2, 2022 ·

Get p-value from summary of linear mode

In this tutorial, we will learn how to extract p-value from a linear regression fit object in R. We will use two approaches to pull out p-value and other statistics of interest from a linear regression model. First we will extract the p-value directly from summary of the linear … [Read more...] about How to get p-value from linear regression model

Filed Under: linear regression, rstats Tagged With: get p-value from linear regression, tidy() in broom

ls() in R: list objects/variables in your environment

rstats101 · July 9, 2021 ·

Often while working in R, you might want to check your environments for all the objects you have created and available in your environment. ls() function in R lists the objects in your environment as a vector. In this tutorial, we will learn the use of ls() functions with … [Read more...] about ls() in R: list objects/variables in your environment

Filed Under: R Function, rstats Tagged With: ls.str() in R, ls() in R

duplicated() function in R: Find duplicated elements in a vector or dataframe

rstats101 · June 30, 2021 ·

In this tutorial, we will learn about the base R function duplicated() and how can we use duplicated() function to find if an element in a vector is duplicated or a row in a dataframe is duplicated. duplicated() function can take a vector, matrix or a dataframe as input and give … [Read more...] about duplicated() function in R: Find duplicated elements in a vector or dataframe

Filed Under: duplicated(), rstats Tagged With: find duplicate elements, find duplicate rows

  • Page 1
  • Page 2
  • 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