last savev

Download Last Savev

If you can't read please download the document

Upload: ishaan-gautam

Post on 06-Sep-2015

218 views

Category:

Documents


0 download

DESCRIPTION

mnbmb

TRANSCRIPT

> emp.dat=read.csv("C:\\Users\\h15085\\Desktop\\Copy of Permanent-and-temporary-teachers-employed-by-Training-Queensland-Quarter-1-2013.csv")> x=emp.dat[,7] #Temporary FTE> x [1] 87.80 2.90 107.95 10.92 151.41 3.80 144.75 4.60 154.94 9.70 18.00 274.71 2.00 159.65 8.20 125.80 3.30[18] 136.46 6.92 71.60 1.00 118.95 3.30 93.90 3.40 NA 1705.96 NA NA NA NA NA NA NA[35] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA[52] NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA[69] NA NA NA NA NA NA NA> emp.dat=read.csv("C:\\Users\\h15085\\Desktop\\Copy of Permanent-and-temporary-teachers-employed-by-Training-Queensland-Quarter-1-2013.csv")> x=emp.dat[,7] #Temporary FTE> x [1] 87.80 2.90 107.95 10.92 151.41 3.80 144.75 4.60 154.94 9.70 18.00 274.71 2.00 159.65 8.20 125.80 3.30 136.46 6.92[20] 71.60 1.00 118.95 3.30 93.90 3.40> mean(x)[1] 68.2384> median(x)[1] 18> mode(x)[1] "numeric"> z=(x-mean(x))/sd(x)> cbind(z) z [1,] 0.26076110 [2,] -0.87097746 [3,] 0.52936571 [4,] -0.76406883 [5,] 1.10869855 [6,] -0.85898024 [7,] 1.01991906 [8,] -0.84831603 [9,] 1.15575434[10,] -0.78033174[11,] -0.66969063[12,] 2.75231886[13,] -0.88297469[14,] 1.21853984[15,] -0.80032712[16,] 0.76731075[17,] -0.86564536[18,] 0.90941125[19,] -0.81738984[20,] 0.04481098[21,] -0.89630495[22,] 0.67599851[23,] -0.86564536[24,] 0.34207564[25,] -0.86431234> boxplot(x)> summary(x) Min. 1st Qu. Median Mean 3rd Qu. Max. 1.00 3.80 18.00 68.24 125.80 274.70 > help("percentile")No documentation for percentile in specified packages and libraries:you could try ??percentile> IQR(x)[1] 122> sd(x)[1] 75.01733> skewness(x)Error: could not find function "skewness"> library(e1071)Error in library(e1071) : there is no package called e1071> local({pkg skewness(x)[1] 0.8849063> kurtosis(x)[1] 3.109567> range(x)[1] 1.00 274.71> breaks=seq(0,275,25)> breaks [1] 0 25 50 75 100 125 150 175 200 225 250 275> x.cut=cut(x, breaks, right=FALSE)> frequency=table(x.cut)> frequencyx.cut [0,25) [25,50) [50,75) [75,100) [100,125) [125,150) [150,175) [175,200) [200,225) [225,250) [250,275) 13 0 1 2 2 3 3 0 0 0 1 > cbind(x.cut) x.cut [1,] 4 [2,] 1 [3,] 5 [4,] 1 [5,] 7 [6,] 1 [7,] 6 [8,] 1 [9,] 7[10,] 1[11,] 1[12,] 11[13,] 1[14,] 7[15,] 1[16,] 6[17,] 1[18,] 6[19,] 1[20,] 3[21,] 1[22,] 5[23,] 1[24,] 4[25,] 1> hist(x)> help("hist")starting httpd help server ... done> piechart(x)Error: could not find function "piechart"> pie(x)> help("pie")> cor(emp.dat[,7],emp.dat[,6])Error in cor(emp.dat[, 7], emp.dat[, 6]) : 'y' must be numeric> cor(emp.dat[,6],emp.dat[,7])Error in cor(emp.dat[, 6], emp.dat[, 7]) : 'x' must be numeric> help("cor")>