There are 12 students in a class: John, Mary, Ruby, Jane, Tommy, Fred, Summer, Todd, Asia, Trevor, Richard, and Peter. Use R to generate a SRS of size 3. Hint: Use the following R codes (As mentioned in office hours) name_list <- c("John", "Mary", "Ruby", "Jane", "Tommy", "Fred", "Summer", "Todd", "Asia", "Trevor", "Richard","Peter") sample(name_list,size=3,replace=F)
R Codes
Output
Get Answers For Free
Most questions answered within 1 hours.