How to simulate data set for exponential hazard function with competing risk.How to simulate IMU data using position and orientation?Finding Kernel function for the data setHazard function for proportional odds modelSimulate random data with a given probability density functionCumulitive hazard function and standard exponential distributionRisk function for vectorsPoisson Random Variable- Probability of getting the $2^nd$ occurrence before a certain time TWhat's the maths behind the movements of a two-legged air dancer (aka skydancer, tube man)? How can I simulate its behavior?Derivation of expressoin for hazard function (another aspect)How to implement an insurance risk model
How much of data wrangling is a data scientist's job?
Approximately how much travel time was saved by the opening of the Suez Canal in 1869?
Decision tree nodes overlapping with Tikz
Is it unprofessional to ask if a job posting on GlassDoor is real?
What doth I be?
Are astronomers waiting to see something in an image from a gravitational lens that they've already seen in an adjacent image?
Was any UN Security Council vote triple-vetoed?
Is it possible to do 50 km distance without any previous training?
dbcc cleantable batch size explanation
Is it legal for company to use my work email to pretend I still work there?
Java Casting: Java 11 throws LambdaConversionException while 1.8 does not
What does it mean to describe someone as a butt steak?
What does the "remote control" for a QF-4 look like?
How to source a part of a file
Filter any system log file by date or date range
Is it inappropriate for a student to attend their mentor's dissertation defense?
Replacing matching entries in one column of a file by another column from a different file
Theorems that impeded progress
Modeling an IP Address
Languages that we cannot (dis)prove to be Context-Free
Important Resources for Dark Age Civilizations?
How to move a thin line with the black arrow in Illustrator?
How much RAM could one put in a typical 80386 setup?
When a company launches a new product do they "come out" with a new product or do they "come up" with a new product?
How to simulate data set for exponential hazard function with competing risk.
How to simulate IMU data using position and orientation?Finding Kernel function for the data setHazard function for proportional odds modelSimulate random data with a given probability density functionCumulitive hazard function and standard exponential distributionRisk function for vectorsPoisson Random Variable- Probability of getting the $2^nd$ occurrence before a certain time TWhat's the maths behind the movements of a two-legged air dancer (aka skydancer, tube man)? How can I simulate its behavior?Derivation of expressoin for hazard function (another aspect)How to implement an insurance risk model
$begingroup$
I want to create a simulation study for two competing events (K=2) with exponential hazard function of lambda 1 = 0.5 and lambda 2 = 1.5.
How to generate the competing risk data with the simulation scheme below with R coding?
(i) with lambda 1 and lambda 2, simulate a failure time T using all cause hazards lambda 1 + lambda 2.
(ii) for determining the cause of T generated in (i), run a binomial experiment with a probability (lambda 1/ lambda 1 + lambda 2) on cause 1.
(iii) generate a right censoring time, C~Unif(c1,c2) where c1 and c2 are determined to a censoring rate.
Thanks!
statistics simulation
$endgroup$
add a comment |
$begingroup$
I want to create a simulation study for two competing events (K=2) with exponential hazard function of lambda 1 = 0.5 and lambda 2 = 1.5.
How to generate the competing risk data with the simulation scheme below with R coding?
(i) with lambda 1 and lambda 2, simulate a failure time T using all cause hazards lambda 1 + lambda 2.
(ii) for determining the cause of T generated in (i), run a binomial experiment with a probability (lambda 1/ lambda 1 + lambda 2) on cause 1.
(iii) generate a right censoring time, C~Unif(c1,c2) where c1 and c2 are determined to a censoring rate.
Thanks!
statistics simulation
$endgroup$
$begingroup$
Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
$endgroup$
– José Carlos Santos
Mar 29 at 9:53
add a comment |
$begingroup$
I want to create a simulation study for two competing events (K=2) with exponential hazard function of lambda 1 = 0.5 and lambda 2 = 1.5.
How to generate the competing risk data with the simulation scheme below with R coding?
(i) with lambda 1 and lambda 2, simulate a failure time T using all cause hazards lambda 1 + lambda 2.
(ii) for determining the cause of T generated in (i), run a binomial experiment with a probability (lambda 1/ lambda 1 + lambda 2) on cause 1.
(iii) generate a right censoring time, C~Unif(c1,c2) where c1 and c2 are determined to a censoring rate.
Thanks!
statistics simulation
$endgroup$
I want to create a simulation study for two competing events (K=2) with exponential hazard function of lambda 1 = 0.5 and lambda 2 = 1.5.
How to generate the competing risk data with the simulation scheme below with R coding?
(i) with lambda 1 and lambda 2, simulate a failure time T using all cause hazards lambda 1 + lambda 2.
(ii) for determining the cause of T generated in (i), run a binomial experiment with a probability (lambda 1/ lambda 1 + lambda 2) on cause 1.
(iii) generate a right censoring time, C~Unif(c1,c2) where c1 and c2 are determined to a censoring rate.
Thanks!
statistics simulation
statistics simulation
asked Mar 29 at 9:46
gilgil
1
1
$begingroup$
Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
$endgroup$
– José Carlos Santos
Mar 29 at 9:53
add a comment |
$begingroup$
Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
$endgroup$
– José Carlos Santos
Mar 29 at 9:53
$begingroup$
Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
$endgroup$
– José Carlos Santos
Mar 29 at 9:53
$begingroup$
Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
$endgroup$
– José Carlos Santos
Mar 29 at 9:53
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3166950%2fhow-to-simulate-data-set-for-exponential-hazard-function-with-competing-risk%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3166950%2fhow-to-simulate-data-set-for-exponential-hazard-function-with-competing-risk%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
Welcome to MSE. For some basic information about writing mathematics at this site see, e.g., basic help on mathjax notation, mathjax tutorial and quick reference, main meta site math tutorial and equation editing how-to.
$endgroup$
– José Carlos Santos
Mar 29 at 9:53