Tony

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Chapter 1 Exercises #85
    Tony
    Keymaster

    2. Report the frequency distribution as a table for PISA09$grade. What proportion of students are in 10th grade?

    grade_tab <- table(epmr::PISA09$grade)
    round(grade_tab / sum(grade_tab), 2)
    in reply to: Chapter 1 Exercises #80
    Tony
    Keymaster

    1. Find descriptive statistics for the age variable using dstudy(). What is the mean age? What is the largest age recorded in the PISA data set? Confirm these results using the base functions mean() and max().

    library("epmr")
    dstudy(PISA09$age)
    mean(PISA09$age)
    max(PISA09$age)
    • This reply was modified 6 years, 3 months ago by Tony.
Viewing 2 posts - 1 through 2 (of 2 total)