Calculating Descriptive Statistics of Data in R
HTML-код
- Опубликовано: 11 сен 2024
- This video is about how to calculate descriptive statistics in R program. I have shown the functions to calculate measures of central tendency like mean, median, harmonic mean, geometric mean and measures of dispersion like range, variance and standard deviation in R. Summary function gives information on the minimum value, 1st quantile, median, mean, 3rd quantile and maximum value in a column of a data set.
To calculate arithmetic mean or average of a specific vector or a column, mean function is used. Median can be calculated using the median function. A column in a data set can be selected by a $ sign. To calculate harmonic mean and geometric mean, we need psych package. Range function in R gives the information of minimum and maximum values of a vector. var and sd function are used to calculate variance and standard deviation, respectively, in R.
To download lamb birth weight data
drive.google.c...
To download Rscript/code used in this tutorial
drive.google.c...
How to Read a csv File in R | Loading a csv File in R
• How to Read a csv File...
How to Create a Project in RStudio
• How to Create a Projec...
Writing Scripts of Codes in R
• Writing Scripts of Cod...
How to Create Matrices and Perform matrix Operations in R
• How to Create Matrices...
To learn the basics of R Programming
• Basics of R Programing
#summaryinR #descriptivestatistics #rprogramming #rstats