Question

In: Statistics and Probability

Please provide R code along with explanations for the following exercise: Mortality rates per 100,000 from...

Please provide R code along with explanations for the following exercise:

Mortality rates per 100,000 from male suicides for a number of age groups and a number of countries are given in the data suicides2 (R package “HSAUR2”). Use appropriate graphical methods to comment on what the graphic tells us about the data.

Solutions

Expert Solution

The required r codes along with the graphical plots are listed below,
*************************************************************************************************************************************************

library(HSAUR2)
data("suicides2")

## Creating age group wise boxplot for whole data
d = suicides2
boxplot(d)

Output :-

Interpretation:- The mean number of male suicides increase with the age group irrespective of Region
*******************************************************************************************************************************************

## line plot Region-wise
par(mar=c(7,4,4,2)+0.1)
matplot(as.matrix(d),type='l',ylab = "Age Group",main = "Number of Male Suicides", xaxt="n",col=1:5,lty=1:5)
legend("topright",legend=c("Age 25 - 34","Age 35 - 44","Age 45 - 54","Age 55 - 64","Age 65 - 74"),col=1:5,lty=1:5)
text(1:15,labels=rownames(d),xpd=T,par("usr")[1]-3,srt=45,adj=1)

Output:-


Related Solutions

. Below are some crude cause-specific mortality rates from the two studies. Crude mortality rate per...
. Below are some crude cause-specific mortality rates from the two studies. Crude mortality rate per 100,000 person-years 1988-1993 2003-2008 Drug Overdose 80.7 242.1 Substance Use Disorder 54.8 109.5 HIV Disease 280.0 84.0 Using both relative and absolute measures of association, compare the three cause-specific mortality rates for the 2003-2008 and 1988-1993 study populations. Use the 1988-1993 study population as the referent group. State in words your interpretation of each of these measures. 4. Do the demographic characteristics of the...
Please provide R-code for the following question: The second argument to `split` can be a list...
Please provide R-code for the following question: The second argument to `split` can be a list of factors. The result is that all interactions (possible combinations) are used for the groups. In the `ToothGrowth` data set, growth (`len`) is measured for two types of supplements (`supp`) and three doses (`dose`). Split this `len` value into 6 groups.
***This problem must be done using R so please provide the R code used to find...
***This problem must be done using R so please provide the R code used to find the solution. I have provided the data in data-wtLoss.txt below the question. I will also give "thumbs-up for correct R code" Thanks in advance.*** The file “data-wtLoss.txt” contains data on weight loss and self esteem evaluation at three time points over a period of three months for 34 individuals who are randomly selected from a residential area. These individuals are randomly assigned to one...
***This problem must be done using R so please provide the R code used to find...
***This problem must be done using R so please provide the R code used to find the solution. I have provided the data in data-wtLoss.txt below the question. I will also give "thumbs-up for correct R code" Thanks in advance.*** The file “data-wtLoss.txt” contains data on weight loss and self esteem evaluation at three time points over a period of three months for 34 individuals who are randomly selected from a residential area. These individuals are randomly assigned to one...
Use R programming to resolve this; can you please provide details on the code? A) Create...
Use R programming to resolve this; can you please provide details on the code? A) Create a dataframe – comparativeGenomeSize with the following vectors: > organism<-c("Human","Mouse","Fruit Fly", "Roundworm","Yeast") > genomeSizeBP<-c(3000000000,3000000000,135600000,97000000,12100000) > estGeneCount<-c(30000,30000,13061,19099,6034) B) Print the organism and estGeneCount for Human and fruitfly.(1) C) Add a column to this data frame calculating base pairs per gene. To do this, write a function “genedensity” that takes as arguments the genomesizeBP and estimatedGeneCount information, and calculates from this the estimated bp per gene....
Please  provide your summary on Linear Regression preferably with some code sample in R.
Please  provide your summary on Linear Regression preferably with some code sample in R.
Part 2 Please study the following capital budgeting project and then provide explanations for the questions...
Part 2 Please study the following capital budgeting project and then provide explanations for the questions outlined below: You have been hired as a consultant for Pristine Urban-Tech Zither, Inc. (PUTZ), manufacturers of fine zithers. The market for zithers is growing quickly. The company bought some land three years ago for $2.1 million in anticipation of using it as a toxic waste dump site but has recently hired another company to handle all toxic materials. Based on a recent appraisal,...
Please study the following capital budgeting project and then provide explanations for the questions outlined below:...
Please study the following capital budgeting project and then provide explanations for the questions outlined below: You have been hired as a consultant for Pristine Urban-Tech Zither, Inc. (PUTZ), manufacturers of fine zithers. The market for zithers is growing quickly. The company bought some land three years ago for $2.1 million in anticipation of using it as a toxic waste dump site but has recently hired another company to handle all toxic materials. Based on a recent appraisal, the company...
Please provide a short definition of the following terms along with an example of each. a....
Please provide a short definition of the following terms along with an example of each. a. GAAP: b. P&L Statement c. EBITDA d. COGS
A health insurance company recorded the annual mortality rate (deaths per 100,000) for residents in 20...
A health insurance company recorded the annual mortality rate (deaths per 100,000) for residents in 20 towns in a certain region. They also collected data on the water hardness, measured by the calcium concentration (parts per million, ppm) in the drinking water. The following regression output was obtained: Variable Coefficient Standard error Intercept 1,722 640.387 Calcium (ppm) -2.088 1.468 (a) Interpret the slope of the regression line. For every 1 ppm increase in calcium concentration in drinking water, the mortality...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT