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 20:50
Suppose the price of frozen yogurt, a substitute for ice cream, increases. what happens to equilibrium price and quantity of ice cream? a. the price and quantity of ice cream both increase b. the price and quantity of ice cream both decrease c. the price of ice cream increases and the quantity decreases d. the price of ice cream decreases and the quantity increases
Answers: 3
question
Business, 22.06.2019 08:30
Match the given situations to the type of risks that a business may face while taking credit. 1. beta ltd. had taken a loan from a bank for a period of 15 years, but its sales are gradually showing a decline. 2. alpha ltd. has taken a loan for increasing its production and sales, but it has not conducted any research before making this decision. 3. delphi ltd. has an overseas client. the economy of the client’s country is going through severe recession. 4. delphi ltd. has taken a short-term loan from the bank, but its supply chain logistics are not in place. a. foreign exchange risk b. operational risk c. term of loan risk d. revenue projections risk
Answers: 3
question
Business, 22.06.2019 16:40
Job 456 was recently completed. the following data have been recorded on its job cost sheet: direct materials $ 2,418 direct labor-hours 74 labor-hours direct labor wage rate $ 13 per labor-hour machine-hours 137 machine-hours the corporation applies manufacturing overhead on the basis of machine-hours. the predetermined overhead rate is $14 per machine-hour. the total cost that would be recorded on the job cost sheet for job 456 would be: multiple choice $3,380 $5,298 $6,138 $2,622
Answers: 1
question
Business, 22.06.2019 17:10
At the end of the current year, accounts receivable has a balance of $550,000; allowance for doubtful accounts has a credit balance of $5,500; and sales for the year total $2,500,000. an analysis of receivables estimates uncollectible receivables as $25,000. determine the net realizable value of accounts receivable after adjustment. (hint: determine the amount of the adjusting entry for bad debt expense and the adjusted balance of allowance of doubtful accounts.)
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
Questions on the website: 13722367