subject

The reported height and height datasets were collected from three classes taught in the Departments of Computer Science and Biostatistics, as well as remotely through the Extension School. The Biostatistics class was taught in 2016 along with an online version offered by the Extension School. On 2016-01-25 at 8:15 AM, during one of the lectures, the instructors asked students to fill in the sex and height questionnaire that populated the reported height dataset. The online students filled the survey during the next few days, after the lecture was posted online. We can use this insight to define a variable, call it type, to denote the type of student: inclass or online: The code below sets up the dataset for you to analyze in the following exercises:
library(dslabs)
library(dplyr)
library(lubridate)
data("reported heights")
dat mutate(reported-heights, date-time ynd hms(time-stamp)) %)% <. filter(date-time )s make-date(2016, θ1, 25) & date-time < make-date(2016, θ2, 1)) %)% mutateltype İfelse(day(date-time)-= 25 & hour(date-time)-= 8 & between(minute(date-time), 15, 30),
"inclass","online")) %)%
select (sex, type)
y <-factor <- dat$sex, c("Female", "Male"))
x <-dat$type
In the course videos, height cutoffs were used to predict sex. Instead of using height, use the type variable and report your prediction accuracy Use what you learned about Q1 to make an informed guess about sex based on the most prevalent sex for each type. You do not need to split the data into training and test sets.
Write a line of code using the table function to show the confusion matrix between y_hat and y Use the format function(a, b) for your answer and do not name the columns and rows.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 23.06.2019 12:00
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
You draw two cards from a standard deck of 52 cards, but before you draw the second card, you put the first one back and reshuffle the deck. (a) are the outcomes on the two cards independent? why?
Answers: 3
You know the right answer?
The reported height and height datasets were collected from three classes taught in the Departments...
Questions
question
German, 05.07.2019 18:00
question
Spanish, 05.07.2019 18:00
Questions on the website: 13722367