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

Other questions on the subject: Business

image
Business, 22.06.2019 09:50, thanitoast84
Acar manufacturer uses new machines that automatically assemble an engine from parts fed to the system. the machine can regulate the speed ofassembly depending on the number of parts produced. which type of technology does this machine use? angenoem mense wat ons in matin en esta va ser elthe machine uses
Answers: 3
image
Business, 22.06.2019 11:50, chas8495
True or flase? a. new technological developments can us adapt to depleting sources of natural resources. b. research and development funds from the government to private industry never pay off for the country as a whole; they only increase the profits of rich corporations. c. in order for fledgling industries in poor nations to thrive, they must receive protection from foreign trade. d. countries with few natural resources will always be poor. e. as long as real gdp (gross domestic product) grows at a slower rate than the population, per capita real gdp increases.
Answers: 2
image
Business, 22.06.2019 15:20, iselloutt4fun
Kelso electric is debating between a leveraged and an unleveraged capital structure. the all equity capital structure would consist of 40,000 shares of stock. the debt and equity option would consist of 25,000 shares of stock plus $280,000 of debt with an interest rate of 7 percent. what is the break-even level of earnings before interest and taxes between these two options?
Answers: 2
image
Business, 22.06.2019 20:20, wavymoney77yt
Direct materials (4.2 x $15) $ 63direct labor ($12 x 17.5) $210manufacturing overhead ($2.40 x 17.5) $42total job cost $ 315dougan, inc. allocates overhead based on a predetermined overhead rate of $2.40 per direct labor hour. employees are paid $12.00 per hour. job 24 requires 4.2 pounds of direct materials at a cost of $15.00 per pound. employees worked a total of 17.5 hours to complete the job. actual manufacturing overhead costs totaled $80,000 for the year for the company. how much is the cost of job 24?
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 in other subjects:

Konu
Business, 19.03.2020 20:55