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, 22.06.2019 15:20
Capital financial corporation will lend 90 percent against account balances that have averaged 30 days or less; 80 percent for account balances between 31 and 40 days; and 70 percent for account balances between 41 and 45 days. customers that take over 45 days to pay their bills are not considered acceptable accounts for a loan. the current prime rate is 16.50 percent, and capital charges 3.50 percent over prime to charming as its annual loan rate. a. determine the maximum loan for which charming paper company could qualify.
Answers: 1
question
Business, 22.06.2019 19:40
Lauer corporation uses the periodic inventory system and has provided the following information about one of its laptop computers: date transaction number of units cost per unit 1/1 beginning inventory 210 $ 910 5/5 purchase 310 $ 1,010 8/10 purchase 410 $ 1,110 10/15 purchase 255 $ 1,160 during the year, lauer sold 1,025 laptop computers. what was cost of goods sold using the lifo cost flow assumption?
Answers: 1
question
Business, 22.06.2019 19:40
Banana computers has decided to procure processing chips required for its laptops from external suppliers instead of manufacturing them in their own facilities. how will this decision affect the firm? a. the firm will be protected against the principal-agent problem. b. the firm's administrative costs will be low because of necessary bureaucracy. c. the firm will have more flexibility in purchasing and comparing prices of goods and services. d. the firm will have high-powered incentives, such as hourly wages and salaries.
Answers: 3
question
Business, 22.06.2019 21:30
The adjusted trial balance for china tea company at december 31, 2018, is presented below:
Answers: 1
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
Arts, 11.01.2021 22:30
question
Health, 11.01.2021 22:30
Questions on the website: 13722361