Use the dataframe Q6. Fit a model predicting Donation. Amount from LIFETIME_MIN_GIFT_AMT and OVERLAY_SOURCE (no interaction)....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 significance of the predictor OVERLAY_SOURCE If it is <2.2e-16 enter 0. Note: The predictor OVERLAY_SOURCE 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=(Q6) M6 # 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. #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 all 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) #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(). data=(Q10) M10 Chi) 401.33 421.33 4 406.96 418.96 5.632 0.2284 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 significance of the predictor OVERLAY_SOURCE If it is <2.2e-16 enter 0. Note: The predictor OVERLAY_SOURCE 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=(Q6) M6 # 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. #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 all 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) #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(). data=(Q10) M10 Chi) 401.33 421.33 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 should one-time write-offs of fixed capital be used in absorption cost systems?
-
For a square matrix A and a nonnegative integer p, show that (AT)P = (AP)T.
-
Find all complex zeros of each polynomial function. Give exact values. List multiple zeros as necessary. (x) = x 4 - 8x 3 + 29x 2 - 66x + 72
-
In 1940, the family of Thomas Back entered into an oil-and-gas lease with the Inland Gas Corporation. The lease held that Inland would pay to Backs family 12 cents per thousand cubic feet of gas...
-
Cook Company estimates that 360,000 direct labor hours will be worked during the coming year, 2012, in the Packaging Department. On this basis, the budgeted manufacturing overhead cost data, shown on...
-
An upstart phone company has only two potential large customers, Firm A and Firm B. Firm A's monthly demand for phone calls is Q1 = 2,800 200p (with p measured in cents) and Firm 2's is Q2 =5,000...
-
The proposed rates were not in the range the CEO expected given the pricing analysis. The CEO has asked the pricing actuary to verify the total projected loss cost excluding potential large storm...
-
Imagine a stock that offers no dividend for the next three years. In Year 4, it is expected to offer $5. In Year 5, the expected dividend growth is 12%. Starting from Year 6, the dividends are...
-
Compare and contrast your favorite and least favorite commercials from this year's Super Bowl 2023 (if you are not watching the game you can just watch them later on YouTube). Using the topics and...
-
Compare and contrast between make-to-stock and make-to-order systems. In your comparison, why does each system require different types of contracts? What are the advantages and disadvantages of each...
-
Compare and contrast management skills needed by a manager at two different levels of an agency. Give examples of the various skills needed at each level of management. Please include at least one...
-
Compare and contrast risks and assumptions. What is the core difference? Why is it important to identify both?
-
Compare and contrast the traditional method of performance appraisal with the more modern method of performance appraisal.
-
An Information Technology Specialist is troubleshooting network problems in her building. The building contains the following rooms: Office 1, Office 2, Office 3, Conference Room A, Conference Room...
-
Determine the resultant moment produced by the forces about point O. 0.25 m 0.125 m, 0 0.3 m- 60 F = 500 N F = 600 N
-
A chi-square test for a 2 4 table with 2 -statistic = 6.83 A test statistic for one of the tests in this unit is given, along with information about sample size(s) or degrees of freedom. Give the...
-
Exercise 11.121 describes a random variable that counts the number of owneroccupied units in a sample of housing units. Use the information in that exercise to find the mean and standard deviation of...
-
In a study conducted in Paris, France, equal amounts of pigeon feed were spread on the ground in two adjacent locations. A human feeder was present in both sites, with one acting as a hostile feeder...
-
Bethany, who weighs 560 N, lies in a hammock suspended by ropes tied to two trees. One rope makes an angle of 45 with the ground; the other makes an angle of 30. Find the tension in each of the ropes.
-
In the Skycoaster amusement park ride, riders are suspended from a tower by a long cable. A second cable then lifts them until they reach the starting position indicated in Figure P5.3. The lifting...
-
In the winter sport of curling, two teams alternate sliding 20 kg stones on an icy surface in an attempt to end up with the stone closest to the center of a target painted on the ice. During one...
Study smarter with the SolutionInn App