subject
Business, 27.02.2020 23:28 negritobull78

I have several functions to complete on a data set in R

1. Load the dataset mtcars. xlsx- completed.
Preview the document into memory and convert column am to a factor using factor() function.
2. Split the data into training set and test set. The training set contains the first 35 observations, the test set containing the remaining observations.
3. Build a logistic regression model with the response is am and the predictors are mpg, cyl, hp, and wt using glm() function
4. Compute the test error on the test data set using a confusion matrix. Is it a good model based on test error?

ansver
Answers: 3

Another question on Business

question
Business, 21.06.2019 22:30
For many years, kellogg's frosted flakes, a ready-to-eat breakfast cereal, was perceived as a cereal for children. tony the tiger, a cartoon character, extolled frosted flakes, and advertisements depicted children enjoying the product with tony in competitive situations. recently, in response to declining sales of frosted flakes, the cereal maker has adopted a new series of advertisements that show adults admitting that they enjoy frosted flakes, too. kellogg's is attempting to
Answers: 1
question
Business, 21.06.2019 23:20
On october 2, 2016 starbucks corporation reported, on its form 10-k, the following (in millions): total assets $14,329.5 total stockholders' equity 5,890.7 total current liabilities 4,546.9 what did starbucks report as total liabilities on october 2, 2016? select one: a. $12,516.7 million b. $6,377.3 million c. $995.0 million d. $8,438.8 million e. none of the above
Answers: 2
question
Business, 22.06.2019 07:00
Imagine you own an established startup with growing profits. you are looking for funding to greatly expand company operations. what method of financing would be best for you?
Answers: 2
question
Business, 22.06.2019 08:40
Gerda, a real estate agent, is selling a moderately priced house in a subdivision. she knows from her uncle that the factory being built half a mile from the subdivision will be manufacturing dog food, using a process that creates a very strong odor that permeates the surrounding neighborhood. a buyer, who is unaware of the type of factory under construction, makes an offer on one of the houses gerda is selling, and within a short time, the deal goes through. what does this scenario best illustrate?
Answers: 3
You know the right answer?
I have several functions to complete on a data set in R

1. Load the dataset mtcars. xlsx...
Questions
question
Mathematics, 13.10.2020 21:01
question
Mathematics, 13.10.2020 21:01
question
Mathematics, 13.10.2020 21:01
question
Geography, 13.10.2020 21:01
Questions on the website: 13722367