Question

In: Statistics and Probability

Kidneys and hearts - R code In part of a study reported by Perotta and Finch...

Kidneys and hearts - R code

In part of a study reported by Perotta and Finch (1972), the blood films of 16 patients with severe renal (kidney) anemia and 10 patients with functional heart disease were measured for red blood cell counts. The percentage changes in red blood cell counts appear below:

Renal anemia: 2.20, 1.52, 1.54, 0.77, 0.34, 0.45, 0.39, 0.29, 0.18, 0.16, 0.23, 0.24, 0.17, 0.08,0.02, 0.02.

Heart disease: 1.84, 0.44, 0.30, 0.06, 0.20, 0.14, 0.10, 0.09, 0.06, 0.04.

Because of non-normality, we'll do our analysis on the logs of the data. Suppose we wish to show that the mean log percentage change is greater for renal patients than for heart patients.

(a) Write down mathematical null and alternative hypotheses for such a test. Carefully define the parameters you use.

(b) Calculate the observed test statistic and the degrees of freedom for an appropriate test.

(c) Find a P-value for your test. What does it tell you about severe renal anemia, functional heart disease, and red blood cell counts?

(d) Find a 95% confidence interval for the difference in the means of the log percentage changes.

Transform the confidence interval back to the original scale. What does your interval tell you quantitatively about the difference in the distributions of red blood cell count changes between the two types of patients?

Solutions

Expert Solution

GIven data is

Renal anemia: 2.20, 1.52, 1.54, 0.77, 0.34, 0.45, 0.39, 0.29, 0.18, 0.16, 0.23, 0.24, 0.17, 0.08,0.02, 0.02.

Heart disease: 1.84, 0.44, 0.30, 0.06, 0.20, 0.14, 0.10, 0.09, 0.06, 0.04.

Log transformed data is

Renal anemia Heart disease
0.78845736 0.609766
0.418710335 -0.82098
0.431782416 -1.20397
-0.261364764 -2.81341
-1.078809661 -1.60944
-0.798507696 -1.96611
-0.94160854 -2.30259
-1.237874356 -2.40795
-1.714798428 -2.81341
-1.832581464 -3.21888
-1.46967597
-1.427116356
-1.771956842
-2.525728644
-3.912023005
-3.912023005

Let

be mean log percentage change for the renal patient

be mean log percentage change for the Heart patient

a) Null Hypothesis :

: =

Alternate Hypothesis :

:    >

b) We will use an independent sample t-test for this analysis.

Test statistic is

  

Here

SS1: 27.68

SS2: 11.84

df1 = N - 1 = 16 - 1 = 15

df2 = N - 1 = 10 - 1 = 9

s2p == 1.65

= : -1.33

= -1.85

t = 1.02

c) The p-value is .159316 which is greater than 0.05 so we do not reject H0 and conclude that mean log percentage change for the renal patient is not greater than mean log percentage change for the Heart patient.

d) 95% Confidence interval is (-0.5408643, 1.5946243)

Back transformed confidence interval is

that is (0.5822, 4.92647)

This interval suggests that 95% of times difference in mean log percentage change for the renal patient and mean log percentage change for the Heart patient will lie in this region.


Related Solutions

In part of a study reported by Perotta and Finch (1972), the blood films of 16...
In part of a study reported by Perotta and Finch (1972), the blood films of 16 patients with severe renal (kidney) anemia and 10 patients with functional heart disease were measured for red blood cell counts. The percentage changes in red blood cell counts appear below: • Renal anemia: 2.20, 1.52, 1.54, 0.77, 0.34, 0.45, 0.39, 0.29, 0.18, 0.16, 0.23, 0.24, 0.17, 0.08, 0.02, 0.02. • Heart disease: 1.84, 0.44, 0.30, 0.06, 0.20, 0.14, 0.10, 0.09, 0.06, 0.04. Because of...
Part 2– R work (must be done in R) Copy and paste your R code and...
Part 2– R work (must be done in R) Copy and paste your R code and output into a word document, along with your written answers to the questions, and upload to Canvas.   Follow these instructions to import the necessary dataset: Before opening the dataset needed for this problem, you’ll need to call the “car”package.  Run the following line of code: > library(car) Now you can import the “Prestige” dataset and use it to answer the question below. Name the data...
Use R.  Provide Solution and R Code within each problem. A study was conducted to determine the...
Use R.  Provide Solution and R Code within each problem. A study was conducted to determine the average weight of newborn babies. The distribution of the weight of newborn babies has a standard deviation of σ = 1.25lbs. A random sample of 100 newborn babies was taken and weights measured. The mean weight of the babies in the sample was 7.3 lbs. a. Construct a 95% confidence interval for the true mean weight of newborn babies. b. Interpret the confidence interval...
A part has a specification of 200+/- 30. a gauge R&R study involves 2 operators. 10...
A part has a specification of 200+/- 30. a gauge R&R study involves 2 operators. 10 parts are measured twice by each operator. Operator 1 measured an average range of 2 and an x-bar bar of 201 for the measurements. Operator 2 measured an average range of 3 and has x bar bar of 205 for the measurements. what is the gauge reproducibility a)2.36 b)3.55 c)1.48 d)2.22
i want all part in R code (1) The purity of oxygen produced by a fractionation...
i want all part in R code (1) The purity of oxygen produced by a fractionation process and the percentage of hydrocarbons in the main condensor of the processing unit, (2) The weight and systolic blood pressure of a group of males in the age group 25-30, (3) The number of pounds of steam used per month at a plant and the average monthly ambient temperature. Answer the following questions for each data sets. (i) Draw the scatter plot. (ii)...
part a- what are the three physiological processes of urine in the kidneys? describe each process....
part a- what are the three physiological processes of urine in the kidneys? describe each process. part b- explain the cellular structures involved in each process.
Q. A study was conducted of the Gouldian finch which lives in North Australia. Each bird...
Q. A study was conducted of the Gouldian finch which lives in North Australia. Each bird observed was classified according to "Face Color" and "Bill colour" and the results are in the following table. Black face red face yellow face black bill 16 5 6 red bill 19 20 6 yellow bill 18 22 22 1) Reproduce the table with marginal and grand totals. 2) Estimate the proportion of the Gouldian finch population with: -> Yellow face and a yellow...
R code Need assistance in getting this R code to run variables (Process) char ( Age)...
R code Need assistance in getting this R code to run variables (Process) char ( Age) char tmp <- expand.grid(Process = unique(words$Process),Age =unique(words$Age)) X <- model.matrix(~ factor(Process):factor(Age), data = tmp) glht(mod, linfct = X)
SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R. SHOW YOUR CODE PROBLEM 1 A study of 400...
SOLVE THE FOLLOWING USING STATISTICAL SOFTWARE R. SHOW YOUR CODE PROBLEM 1 A study of 400 glaucoma patients yields a sample mean of 140 mm and a sample standard deviation of 25 mm for the the following summaries for the systolic blood pressure readings. Construct the 95% and 99% confidence intervals for μ, the population average systolic blood pressure for glaucoma patients. PROBLEM 2 Suppose that fasting plasma glucose concentrations (FPG) in some population are normally distributed with a mean...
1H Part 1 How do the kidneys assist the body in maintaining homeostasis in terms of...
1H Part 1 How do the kidneys assist the body in maintaining homeostasis in terms of fluid levels and hydration? 1H Part 2 How do the kidneys assist the body in maintaining homeostasis in terms of its blood pH level? 1H Part 3 How do the kidneys assist the body in maintaining homeostasis in terms of the body’s ion and electrolyte balance? 1H Part 4 How do the kidneys assist the body in maintaining homeostasis in terms of blood pressure?...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT