Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Repeat the analysis from Exercise 11 using a proportional odds regression model. Note that this will require programming a model-fitting function for use in glmulti(), because the proportional odds model is not normally fit using glm(). The code for doing this is available in the program glmultiFORpolr.R. This code needs to be run before glmulti() is called on the polr-class model fit.

(a) For each variable, report the posterior probability that it belongs in the model and interpret the results.

(b) Obtain model-averaged estimates of the odds ratios corresponding to the effect of each explanatory variable. Interpret these values.

(c) Compute 95% confidence intervals for each odds ratio and interpret. In particular, which variables appear to be most important in describing countries' use of the death penalty?

(d) Repeat this analysis on the odds ratios from a single proportional odds model using all explanatory variables. Compare the results to the model-averaged values.

Exercise 11

Continuing Exercise 10, the researcher's main interest was to determine which, if any, of the explanatory variables are associated with the country's use of the death penalty. Complete the items below with this in mind.

(a) Explain why a BMA approach would be more appropriate than a stepwise approach given the context of this problem.

(b) Treating the response as nominal multinomial, carry out the BMA analysis using main effects only. Report the results and draw conclusions. Note that this will require programming a model-fitting function for use in glmulti(), because the multinomial model is not normally fit using glm(). The code for doing this is available in the program glmulti FOR multinom.R. This code needs to be run before glmulti() is called on the multinom-class model fit.

Exercise 10

A criminologist studying capital punishment was interested in identifying whether certain social, economic, and political attributes of a country related to its use of the death penalty. She gathered data from public sources on 194 countries, recording the following variables:

• COUNTRY: The name of the country;

• STATUS: The country's laws on death penalties, coded as a = Public executions; b = Private executions; c = Executions allowed but none carried out in last 10 years; d = No death penalty;

• LEGAL: The basis for the country's legal system, coded as a = Islamic; b = Civil; c = Common; d = Civil/Common; e = Socialist; f = Other;

• HDI: Human Development Index, a numerical measure ranging from 0 (very low human development) to 1 (very high human development);

• GINI: GINI Index of income inequality, a numerical measure ranging from 0 (perfect equality) to 1 (perfect inequality);

• GNI: Gross National Income per capita (US$);

• LITERACY: Literacy rate (% of adults aged 15 and above who are literate);

• URBAN: Percentage of total population living in urban areas;

• POL: Political Instability Index for the level of threat posed to governments by social protest, a numerical measure ranging from 0 (no risk) to 10 (high risk);

• CONFLICT: Level of conflict experienced in the country, coded as a = No conflict, b = latent (non-violent) conflict, c = manifest conflict, d = crisis, e = severe crisis, f = war.

The data for the 141 countries with complete records are available in the DeathPenalty.csv file.11 The response variable is the country's death penalty status, while all other variables except COUNTRY are explanatory.

(a) Fit a multinomial (nominal response) regression model to these data using all available explanatory variables as linear terms. Compute the AIC and the BIC for this model. Also compute AICc by using the formula on page 267. Note that the model degrees of freedom that are needed for computing AICc can be found from the extractAIC() function.

(b) Explain why STATUS can be viewed as an ordinal variable.

(c) Fit a proportional odds regression model (see Section 3.4) to these data using all available explanatory variables. Compute AIC, BIC, and AICc as in the multinomial regression model.

(d) Note that the proportional odds model assumes both the ordinality of the response and equal coefficients across different logits. Based on the information criteria, is there evidence to suggest that these assumptions lead to a poor model fit? Explain.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91994919

Have any Question?


Related Questions in Computer Engineering

Run the command netstat -athis will give you a list of all

Run the command netstat -a This will give you a list of all of the network connections your system knows about. How many do you see that are listening (meaning, there are programs that are waiting for connections from ot ...

Discussion question a sketch the storyboard for the simple

Discussion Question : a) Sketch the storyboard for the simple student information application. Recall that there are 6 files (scripts): connectcode.php, createtables.php, enterstudent.html, enterstudent.php, showstudents ...

Given the following scenarios what is the standard

Given the following scenarios, what is the standard deviation for Acme, Inc.? Economy / Pri / Ri Strong / 0.3 / 40% Normal / 0.4 / 16% Weak / 0.3 / -20% Express your answer in decimal format (e.g., 0.1935 to represent 19 ...

In relation to internet connectivity both you and the

In relation to Internet connectivity, both you and the chemists at Plains Research are concerned about security. What network device or devices can be used to address the concern about security?

Fifteen batteries are tested to determine whether the

Fifteen batteries are tested to determine whether the battery life is as long as advertised. Four batteries fail the test. From all fifteen batteries, two are selected at random without replacement. Find the probability ...

What is 4g and its benefits how fast is your internet

What is 4G and its benefits. How fast is your Internet service supposed to be for stationary users?

Question a topic related to database securityyou must pick

Question: A topic related to Database Security. You must pick one topic after reading at least 5 articles. You must provide a list of those articles you read and you must annotate each one. That is, you must write at lea ...

Question suppose we have a message m 0101011010100001 to

Question : Suppose we have a message m = 0101011010100001 to be transmitted across a network and to protect it from errors, we use the CRC generator polynomial P(x) = x 7 +x 6 +x 2 +x. Answer the following: (a) What is t ...

Question the below table shows the instruction count ic for

Question : The below table shows the instruction count (IC) for programs running on three processors P1, P2, and P3 with the clock rates 1.0 GHz, 2.5 GHZ, and 2.0 GHz respectively. Each program consists of only Load/stor ...

Tetrafluoromethane cf4 is a greenhouse gas synthesized by a

Tetrafluoromethane (CF 4 ) is a greenhouse gas synthesized by a violently explosive reaction between methane and fluorine. In joules, what is the average kinetic energy of a molecule of CF 4  at 57.2°C and 0.0010 atm?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As