#6: Use the dataframe Q6. Fit a model predicting 'Donation. Amount' from LIFETIME_MIN_GIFT_AMT and OVERLAY_SOURCE (no...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
#6: Use the dataframe Q6. Fit a model predicting 'Donation. Amount' from LIFETIME_MIN_GIFT_AMT and OVERLAY_SOURCE (no interaction). Copy/paste the p-value of the test for If it is <2.2e-16 enter 0. is a categorical variable so the test should significance of the predictor OVERLAY_SOURCE Note: The predictor OVERLAY_SOURCE be done by using drop1(). Check the previous activity and make sure to specify the correct test when using drop1(). {r} data=(Q6) M6<-1m(Donation.Amount-LIFETIME_MIN_GIFT_AMT+OVERLAY_SOURCE, data=Q6) visualize_model (M6) drop1(M6, test="chisq") summary (M6) #11: Use the Q11 dataframe. You want a 'good' model predicting 'wins' from all remaining variables in Q11 (without interactions). Perform the 'all possible' approach, which produces a list of models with whose AICS are within 4 of the overall lowest AIc of all considered models. From this list of models, identify the predictors in the model with the FEWEST predictors (it could be the case your list has only one model). Redo the 'al1 possible' approach considering just those predictors ALONG WITH all two-way interactions between them to produce yet another list of models (your list might only have one). Report the AIC of the model at the top of this list, i.e., the one with the LOWEST AIC. Note: do not add ANY extra arguments (e.g., nbest or nvmax) to any of the commands. ` {r} data=(Q11) #12: Use dataframe Q12. First set the seed number to be 320. Split the dataframe Q12 into a training sample (75%) and holdout sample (25%). Build a predictive logistic regression model predicting 'Buy' from all remaining predictors in Q12 (no interactions), choosing as your final model the one suggested by the one standard deviation rule (make sure to use 320 for the seed number). Fit the model on the training sample, then report its misclassification rate on your holdout sample. The answer should be a number between 0 and 100. Note: Make sure to set the random number seed to 320 when splitting the data into traning, holdout sample and building a predictive logistic regression model. #10: Use dataframe Q10. Fit a logistic regression model predicting Smoking from Weight and SpouseRace with an interaction. Copy/paste the p-value of the interaction. If it is <2.2e-16 enter 0. Note: The predictor SpouseRace is a categorical variable so the test should be done by using drop1(). Check the previous activity and make sure to specify the correct test when using drop1(). `{r} data=(Q10) M10<-glm(Smoking-Weight*SpouseRace, data=Q10,family="binomial") visualize_model (Q10) drop1 (M10, test="chisq") Single term deletions Model: Smoking - Weight * SpouseRace Df Deviance AIC LRT Pr(>Chi) <none> 401.33 421.33 Weight:SpouseRace 4 406.96 418.96 5.632 0.2284 #6: Use the dataframe Q6. Fit a model predicting 'Donation. Amount' from LIFETIME_MIN_GIFT_AMT and OVERLAY_SOURCE (no interaction). Copy/paste the p-value of the test for If it is <2.2e-16 enter 0. is a categorical variable so the test should significance of the predictor OVERLAY_SOURCE Note: The predictor OVERLAY_SOURCE be done by using drop1(). Check the previous activity and make sure to specify the correct test when using drop1(). {r} data=(Q6) M6<-1m(Donation.Amount-LIFETIME_MIN_GIFT_AMT+OVERLAY_SOURCE, data=Q6) visualize_model (M6) drop1(M6, test="chisq") summary (M6) #11: Use the Q11 dataframe. You want a 'good' model predicting 'wins' from all remaining variables in Q11 (without interactions). Perform the 'all possible' approach, which produces a list of models with whose AICS are within 4 of the overall lowest AIc of all considered models. From this list of models, identify the predictors in the model with the FEWEST predictors (it could be the case your list has only one model). Redo the 'al1 possible' approach considering just those predictors ALONG WITH all two-way interactions between them to produce yet another list of models (your list might only have one). Report the AIC of the model at the top of this list, i.e., the one with the LOWEST AIC. Note: do not add ANY extra arguments (e.g., nbest or nvmax) to any of the commands. ` {r} data=(Q11) #12: Use dataframe Q12. First set the seed number to be 320. Split the dataframe Q12 into a training sample (75%) and holdout sample (25%). Build a predictive logistic regression model predicting 'Buy' from all remaining predictors in Q12 (no interactions), choosing as your final model the one suggested by the one standard deviation rule (make sure to use 320 for the seed number). Fit the model on the training sample, then report its misclassification rate on your holdout sample. The answer should be a number between 0 and 100. Note: Make sure to set the random number seed to 320 when splitting the data into traning, holdout sample and building a predictive logistic regression model. #10: Use dataframe Q10. Fit a logistic regression model predicting Smoking from Weight and SpouseRace with an interaction. Copy/paste the p-value of the interaction. If it is <2.2e-16 enter 0. Note: The predictor SpouseRace is a categorical variable so the test should be done by using drop1(). Check the previous activity and make sure to specify the correct test when using drop1(). `{r} data=(Q10) M10<-glm(Smoking-Weight*SpouseRace, data=Q10,family="binomial") visualize_model (Q10) drop1 (M10, test="chisq") Single term deletions Model: Smoking - Weight * SpouseRace Df Deviance AIC LRT Pr(>Chi) <none> 401.33 421.33 Weight:SpouseRace 4 406.96 418.96 5.632 0.2284
Expert Answer:
Related Book For
Statistics Unlocking the Power of Data
ISBN: 978-1118583104
1st edition
Authors: Robin H. Lock, Patti Frazer Lock, Kari Lock Morgan, Eric F. Lock, Dennis F. Lock
Posted Date:
Students also viewed these mathematics questions
-
Is this an effective model for predicting horse prices? Write down the relevant hypotheses as well as a conclusion based on the ANOVA table. Use information in the ANOVA table below, which comes from...
-
If P = 6 kN, x = 0.75 m and y = 1 m, determine the tension developed in cables AB, CD, and EF. Neglect the weight of theplate. D. 2 m
-
The model using 12 squared and interaction variables has the smallest s. However, if we desire a somewhat simpler model, note that s does not increase substantially until we move from a model having...
-
Why would you use a prospective overhead rate to accumulate the overhead costs of a job?
-
Show that if A is any m n matrix, then Im A = A and AIn = A.
-
Queuing theory (also known as waiting-line theory) investigates the problem of providing adequate service economically to customers waiting in line. Suppose customers arrive at a fast-food service...
-
Oncology Tech is a manufacturer of cancer therapy devices called compensators. CMS was a company that sold cancer treatment planning software for use in purchasing cancer treatment devices. In 2006,...
-
The following information is available for Sedona, Inc., as of May 31, 2014: a. Cash on the books as of May 31 amounted to $42,754.16. Cash on the bank statement for the same date was $52,351.46. b....
-
In some labor markets, the supply of labor is as follows (where W represents wages and L represents the number of employees): W = 113 + 0.21L However, the demand for labor is: W = 958 -0.28L a) At...
-
Apple is considering a replacement machine that has a cost of $25,000.The new machine will permit output expansion, so annual revenues are estimated at $5,000 during its operating period.The new...
-
In the mutual fund industry, the most common performance measure is a hypothetical rate of return which assumes performance is constant over the entire period and is known as the: cumulative total...
-
Compare the accounts payable balance from the supplier aged summary to the balance from the trial balance. Create a note on the account in CaseWare that these amounts match. Finnigan filed the June...
-
In your own words, briefly compare the Army Air Corps with the modern Air Force (you may need to do light research). Do you feel there exist rivalries among the pilots of the various armed forces?...
-
1). Compare the business process at AuthBridge in its early days with that in 2011. How has the process evolved? 2). What is the impact of the digitalization on throughput rate, throughput time, and...
-
Supply chain case study - Demise of K-mart. Please compare the supply chain of K-mart, Walmart and Target Identification of Business Strategy in Supply Chain Management of K-mart, Walmart, and Target...
-
A peer group analysis is a way to compare financial statements of similar companies/business to each other. By comparing the two different financial statements they evaluate the performance of each...
-
2. What are the different families of Intel i-Series CPUs? Which one is the recommended one today for an IT student laptop? 3. What are the primary differences between the families of CPUs? 4. What...
-
The tractor is used to lift the 150-kg load B with the 24-mlong rope, boom, and pulley system. If the tractor travels to the right at a constant speed of 4 m/s, determine the tension in the rope when...
-
Using the data in NutritionStudy, we show computer output for a model to predict calories consumed in a day based on fat grams consumed in a day, cholesterol consumed in mg per day, and age in years:...
-
Test whether people with a specific genetic marker are more likely to have suffered from clinical depression than people without the genetic marker, using the information that 38% of the 42 people in...
-
Indicate whether the five number summary corresponds most likely to a distribution that is skewed to the left, skewed to the right, or symmetric. (15, 25, 30, 35, 45)
-
The lightweight wheel on a road bike has a moment of inertia of 0.097 kg m 2 . A mechanic, checking the alignment of the wheel, gives it a quick spin; it completes 5 rotations in 2.0 s. To bring the...
-
We can model a small merry-go-round as a uniform circular disk with mass 88 kg and diameter 1.8 m. How many 22 kg children need to ride the merry-go-round, standing right at the outer edge, to double...
-
The engine in a small airplane is specified to have a torque of 500 N m. This engine drives a 2.0-m-long, 40 kg single-blade propeller. On startup, how long does it take the propeller to reach 2000...
Study smarter with the SolutionInn App