Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer question 1 using R. Let Y > 0 be a continuous random variable representing time from regimen start to bone-marrow transplant. Everyone does not

Answer question 1 using R.

Let Y > 0 be a continuous random variable representing time from regimen start to bone-marrow transplant. Everyone does not survive long enough to get the transplant. Let X > 0 be a continuous random variable representing time from regimen start to death. We can assume X Y and model time to death as X Exp(rate = ) and time to transplant as Y Exp(rate = ). Where Exp(rate = ) denotes the exponential distribution with density f(z | ) = ez for z > 0 and 0 elsewhere - with > 0.

1. ) Assume that we have = 1/10 and = 1/15. Use the rexp() function in R for i = 1, 2, . . . , 10000 in simulating death and transplant times for 10,000 patients Xi Exp(1/10) and Yi Exp(1/15). Show R code in your answer.

What is the proportion of simulated patients who receive transplant before death?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Mathematical Economics Volume 19

Authors: Shigeo Kusuoka, Toru Maruyama

1st Edition

4431554890, 9784431554899

More Books

Students also viewed these Mathematics questions

Question

Give two examples of fringe benefits.

Answered: 1 week ago

Question

What courses does he/she teach?

Answered: 1 week ago