Please write R scripts to solve the following questions: Questions…

Question Please write R scripts to solve the following questions: Questions… Please write R scripts to solve the following questions:Questions 1 to 5 pertain to the MacRae-prisoner data. Image transcription text01: Use the ecdfO function to get the cumulative distribution for the posted network datasets. The cumulativedistribution gives the following for each individual, in the MacRae-prisoner data context. 02: Calculate theaverage degree of the network. Which of the following is the average degree for the MacRae-pris… Show more… Show moreBelow is the MacRae-prisoner data:Degree,Number of prisoners0,71,172,113,94,125,36,47,38,1 Engineering & Technology Computer Science IDS 564 Share QuestionEmailCopy link Comments (0)