Breaking News

Wednesday, November 29, 2017

Descriptive Statistics With R Studio

Hallo Guys, How are you today ? 

On this Occasion, we will learn how to analisys Statistics Descriptive with R Studio. Descriptive statistics is the term given to the analysis of data that helps describe, show or summarize data in a meaningful way such that, for example, patterns might emerge from the data. 

Oke now lets try in your R Studio  : 

  • First, open your R Studio >> File >> New File >> R Script.
  • Download the following of data set (Download : Data train
  • you can enter the data set to R script below :
#using read.delim function
##you have to copy the data first in your file have been downloaded, 
##then write the following script

data=read.delim("clipboard")
data
  • If you want to summarize the data set, write the following script :
#mean,median,25th and 75th quartiles,min,max
summary(data)

There are also numerous R functions designed to provide a range of descriptive statistics at once. For example :
  • Using Library(pastecs)
library(pastecs)
stat.desc(data) 
# nbr.val, nbr.null, nbr.na, min max, range, sum, 
# median, mean, SE.mean, CI.mean, var, std.dev, coef.var
  • Using Library(psych)
library(psych)
describe(data)
# item name ,item number, nvalid, mean, sd, 
# median, mad, min, max, skew, kurtosis, se

If you are not satisfied, see also : (https://www.statmethods.net/stats/descriptives.html )

"Thanks for visiting , don't forget to like and comment 
Have a nice day :)" 

No comments:

Post a Comment

Copyright by INFO STATISTICS