-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prevalence.msm censtime question #94
Comments
It's not clear why you'd expect the state 4 totals to decrease after reaching |
Thank you for the explanation. In this document on page 34 is where I am confused. If a patient dies at time point 20 and would only follow up to time point 30 if alive, how would we "forget" about this death at t=30?
https://cran.r-project.org/web/packages/msm/vignettes/msm-manual.pdf
![image](https://github.com/chjackson/msm/assets/76982219/f48b58fd-7300-4c4b-bab7-170ee83d1828)
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Chris Jackson ***@***.***>
Sent: Saturday, February 17, 2024 4:11:26 AM
To: chjackson/msm ***@***.***>
Cc: Lee, Steven ***@***.***>; Author ***@***.***>
Subject: Re: [chjackson/msm] prevalence.msm censtime question (Issue #94)
***CAUTION:*** This email is not from a BCM Source. Only click links or open attachments you know are safe.
________________________________
It's not clear why you'd expect the state 4 totals to decrease after reaching censtime? The constant value you see is the number of people who have died before censtime. Those who die after censtime don't get added to this total, but we don't "forget about" the people whose deaths we have observed under the assumed observation scheme. Is there a sentence in the help file with a misleading wording?
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_chjackson_msm_issues_94-23issuecomment-2D1949924161&d=DwMCaQ&c=ZQs-KZ8oxEw0p81sqgiaRA&r=mkIWzf69G9bkvQtxlldsvUM6islUIC9UIbi0XRM469Y&m=Ebv6U-_Ro9y3T2L949M7zqT6Lgj-2AmulhxHoGp0_wVvH4crjuniLtl_Sp38bzwF&s=BdzdO-AOeW4Ep5xjQVR8rNOagI_5DoGMwcwXT2A7yqY&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ASLKPS4APC55OZDREY4LTKDYUB645AVCNFSM6AAAAABDMJ625WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBZHEZDIMJWGE&d=DwMCaQ&c=ZQs-KZ8oxEw0p81sqgiaRA&r=mkIWzf69G9bkvQtxlldsvUM6islUIC9UIbi0XRM469Y&m=Ebv6U-_Ro9y3T2L949M7zqT6Lgj-2AmulhxHoGp0_wVvH4crjuniLtl_Sp38bzwF&s=yxPYdok_13JmW9ehcKl_E-l21b13Cu6jBFcnoIIm01s&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Deaths for people in the data who die after censtime are not included in the counts of death after censtime. However deaths before censtime are included in the counts of deaths both before and after censtime. So the count can't go up, but it can't go down either. If a person dies before their censtime, we don't exclude them from the count after censtime, because we are trying to imitate how a similar dataset might be observed in real life - if we observed that a person died before the end of the study we would know they are dead forever. |
Got it. Thank you!
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Chris Jackson ***@***.***>
Sent: Saturday, February 17, 2024 9:36:47 AM
To: chjackson/msm ***@***.***>
Cc: Lee, Steven ***@***.***>; Author ***@***.***>
Subject: Re: [chjackson/msm] prevalence.msm censtime question (Issue #94)
***CAUTION:*** This email is not from a BCM Source. Only click links or open attachments you know are safe.
________________________________
Deaths for people in the data who die after censtime are not included in the counts of death after censtime. However deaths before censtime are included in the counts of deaths both before and after censtime. So the count can't go up, but it can't go down either. If a person dies before their censtime, we don't exclude them from the count after censtime, because we are trying to imitate how a similar dataset might be observed in real life - if we observed that a person died before the end of the study we would know they are dead forever.
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_chjackson_msm_issues_94-23issuecomment-2D1950238121&d=DwMCaQ&c=ZQs-KZ8oxEw0p81sqgiaRA&r=mkIWzf69G9bkvQtxlldsvUM6islUIC9UIbi0XRM469Y&m=YdCnlNbOBIKBx52oVRBtCLXtwe8SIjg_ZAmcP1PgK0G72qCsOFcW2OKDlJ2Lo8jA&s=5ByyOIUOMT2VLxLeOUxhmVNKP8E1lhp4y49w9M645Qg&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ASLKPS2AQKGQ5HMUYGBQ4TLYUDFA7AVCNFSM6AAAAABDMJ625WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJQGIZTQMJSGE&d=DwMCaQ&c=ZQs-KZ8oxEw0p81sqgiaRA&r=mkIWzf69G9bkvQtxlldsvUM6islUIC9UIbi0XRM469Y&m=YdCnlNbOBIKBx52oVRBtCLXtwe8SIjg_ZAmcP1PgK0G72qCsOFcW2OKDlJ2Lo8jA&s=uZlPhrswoi4uUQGbxvmCG0VheBQYwEsoCFq6TIR15qI&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Hi, thank you for this incredible work. I am new to R and msm and have been going through your vignettes / tutorials. With censtime, my understanding is if you have an absorbing state such as death and it occurs before censtime, then that value would be removed from the prevalence data for times after censtime.
Using the psor data set, I have tried using censtime with default (Inf), 10, and 30. The values of state 4 seem to stay constant with the total just prior to the censtime value. For instance, with censtime =10, state 4 = 8 for times >= 10 and for censtime = 30, this equals 57 times >= 30. I would have expected state4 totals to decrease after reaching censtime. Is my interpretation of this correct or does censtime only exclude values that occur after?
I will try creating an array of censtime for subject specific values later, but I wanted to ensure appropriate understanding before continuing.
The text was updated successfully, but these errors were encountered: