68 69 data read. (\"/Applications/therbook/murders.txt header TO table 70 attach
ID: 3248605 • Letter: 6
Question
68 69 data read. ("/Applications/therbook/murders.txt header TO table 70 attach data 71 names data #shows names from the data set 72 table region shows the samples size of each region 73 tapplyOmurder, region, mean get the mean of the murders in the regions 74. tapply murder, region,var varience of the murders in the regions 75 plotCseqC0,1,length type ylab Cumulative probability labs Index col red") 76 lines seq 0,1,length 10) ,cumsum sort Northeast /sum Northeast col "blue") 77 ks test Cregion "Northeast "J ,y region South']) 78, shapiro. test region South"] 79 qqnorm murder Cregion "South"] pch 16, coll blue") 80 aaline murder Dregion South"] col green ,lty 2 81Explanation / Answer
Hi,
The only issue I see here is that the dataset "South" doesnot match the length of the X dataset.
X(or index) as generated using seq function has 16 objects, hence South dataset also needs the exact same number of objects in it.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.