Multiple regression in r studio

    

Use the appropriate function to read the following data into R as a data frame named lab7.data: CLICK HERE                Download CLICK HERE              

The data set represents several attributes on data breaches across  several organizations. It includes 500 observations and 10 variables.  The names and descriptions of each variable in the data set is provided  below.

  • event_ID: used to label each event
  • data_type: the type of data breached
  • num_people (in millions): the number of people impacted by a data breach, expressed in millions
  • num_people_v2: coded version of the variable num_people
  • num_records (in millions): the number of records breached, expressed in millions
  • per_sensitive: percent of sensitive data breached
  • per_sensitive_v2: coded version of the variable per_sensitive
  • dys_impact: the length of the negative financial impact from the data breach
  • dys_detect: the number of days it takes to detect the breach
  • cost_controls (in millions): the amount of money spent on security controls, expressed in millions

1.  

Use the best subsets approach to determine which  variable(s) would best predict the cost of controls. Please be sure to  exclude categorical variables such as event_ID.

NOTE: Please note that predictors  is being used as a placeholder for the actual predictors in your  model. In your answer below, make sure you replace all the blanks, such  as [1] and [2], with the correct syntax so that the lines of code work.   Make sure you also include the variable names of your predictors in  place of predictors.

bestsubsets = [1]([2]~ predictors, data = [3], [4])

[5]([6], [7] = “adjr2”)

2. 

          The single best one-variable model includes which of the following variables?       

                   Group of answer choices                                data_type       
 
              num_people       
 
              num_people_v2       
 
              num_records       
 
              per_sensitive       
 
              per_sensitive_v2       
 
              dys_impact       
 
              dys_detect       
 
 3. 

          The single best two-variable model includes which of the following variables?       

                   Group of answer choices                                data_type       
 
              num_people       
 
              num_people_v2       
 
              num_records       
 
              per_sensitive       
 
              per_sensitive_v2       
 
              dys_impact       
 
              dys_detect       
 
 4. 

          The single best three-variable model includes which of the following variables?       

                   Group of answer choices                                data_type       
 
              num_people       
 
              num_people_v2       
 
              num_records       
 
              per_sensitive       
 
              per_sensitive_v2       
 
              dys_impact       
 
              dys_detect       
 
 5. 

          The single best four-variable model includes which of the following variables?       

                   Group of answer choices                                data_type       
 
              num_people       
 
              num_people_v2       
 
              num_records       
 
              per_sensitive       
 
              per_sensitive_v2       
 
              dys_impact       
 
              dys_detect       
 
 6.  

Run five separate regression models that represent the five  models shown in the best subsets plot in R. Number your models  sequentially from Model 1 to 5 based on the number of predictors it  includes. Provide the Adjusted R2 values for each of your five models below.

Note: Please the report the values as displayed in R. Do not round them.

Model 1:  

Model 2:  

Model 3:  

Model 4:  

Model 5:  

7. 

          After examining the significance of the predictors in each model and their Adjusted R2, which of the following models provides the best fit for predicting the cost of controls?       

                   Group of answer choices                                Model 1       
 
              Model 2       
 
              Model 3       
 
              Model 4       
 
              Model 5       
 
              Model 6       
 
 8.  

Evaluate Model 5 for multicollinearity and provide the estimates below.

The highest VIF among your predictors is:  

The lowest tolerance among your predictors is:  

Note: Please report each of these values as displayed in R. Do not round them.

9. 

          Based on the results from your calculations for the tolerance, you can conclude that for Model 5 there is:       

                   Group of answer choices                                a potential concern for multicollinearity.       
 
              a serious concern for multicollinearity.       
 
              no concern for multicollinearity.       
 

10.  

          Based on the results from your calculations for the VIF, you can conclude that for Model 5 there is:       

                   Group of answer choices                                a concern for multicollinearity.       
 
              no concern for multicollinearity.       
 
 11.  

          Use R to generate a correlation matrix for the predictors used  in Model 5. Based on your results, the strongest correlation can be  found between which of the following two predictors?       

                   Group of answer choices                                num_people       
 
              num_records       
 
              per_sensitive       
 
              dys_impact       
 
              dys_detect       
 
              cost_controls       
 
 
 12.  

          The value of the strongest correlation between your predictors is:       

 
 

Duepapers
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.