06-21-2024
soosas
Fluorite | Level 6
Member since
10-22-2021
- 4 Posts
- 9 Likes Given
- 0 Solutions
- 1 Likes Received
-
Latest posts by soosas
Subject Views Posted 965 05-15-2023 10:31 AM 2830 03-21-2023 01:06 PM 2012 11-29-2022 03:08 PM 2018 11-29-2022 03:04 PM -
Activity Feed for soosas
- Liked Re: proc phreg not recognizing reference category (solved but a follow up question) for FreelanceReinh. 06-21-2024 08:33 AM
- Liked Re: Compare two medians for Rick_SAS. 06-21-2024 08:29 AM
- Liked Re: Compare two medians for PGStats. 06-21-2024 08:29 AM
- Liked Re: Compare two medians for SteveDenham. 06-21-2024 08:29 AM
- Posted Re: proc phreg not recognizing reference category (solved but a follow up question) on SAS Programming. 05-15-2023 10:31 AM
- Liked Re: proc phreg not recognizing reference category for ballardw. 05-15-2023 10:18 AM
- Liked Re: proc phreg not recognizing reference category for FreelanceReinh. 05-15-2023 09:53 AM
- Posted Re: Removing merged cells in PROC TABULATE on SAS Procedures. 03-21-2023 01:06 PM
- Liked Re: Hazards ratio in PROC CAUSALMED for MichaelL_SAS. 11-29-2022 03:27 PM
- Got a Like for Re: Proc Causalmed for Mediation Analysis with Time-to-event data. 11-29-2022 03:17 PM
- Posted Re: Proc Causalmed for Mediation Analysis with Time-to-event data on SAS Procedures. 11-29-2022 03:08 PM
- Liked Re: error 73-322 when using proc causalmed for survival analysis for Rick_SAS. 11-29-2022 03:06 PM
- Liked Re: error 73-322 when using proc causalmed for survival analysis for Rick_SAS. 11-29-2022 03:06 PM
- Posted Re: Proc Causalmed for Mediation Analysis with Time-to-event data on SAS Procedures. 11-29-2022 03:04 PM
-
Posts I Liked
Subject Likes Author Latest Post 1 1 2 2 1 -
My Liked Posts
Subject Likes Posted 1 11-29-2022 03:08 PM
05-15-2023
10:31 AM
Referencing this post and community members as it is now marked as solved and locked: https://communities.sas.com/t5/SAS-Programming/proc-phreg-not-recognizing-reference-category/m-p/509372/highlight/true#M136930 @FreelanceReinh @ballardw @TL93 I really liked @FreelanceReinh and @ballardw explanations from the post from @TL93 on PROC PHREG not recognizing reference category. I actually want to understand it further. Even though SAS is ignoring the variable because it's absorbed by the first variable, I believe SAS will still account for those in other categories where it's not absorbed. So say immigrant = 0 and ysmcat = 0 occ = 2 ind = 3: For those with immigrant = 0, in the output ysmcat = 0 variable is set to missing and immigrant = 0 is used as the reference. The calculations aren't outputted, however those observations aren't dropped and this observation's occ = 2 and ind = 3 is used in a calculation of hazards for those variables and subsequent ratios. Additionally, the effect of the next strata for ysmcat above the original ysmcat = 0 (so ysmcat =1) may become the effect of immigrant = 1. I am seeing this in a similar model that I have run. Would you know why this happens and what is going in the model? My take is that in PROC PHREG when a strata in one variable (immigrant = 0) can be replicated in another strata of another variable (ysmcat = 0) SAS does not take those variable's strata under consideration, and conducts an implicit stepping up or down to the next non-linearly dependent strata in the variable (ysmcat = 1 or ysmcat = 6 depending on REF parameters). Since for the other variables for (occ = 2 ind = 3) there is no dependence, the HR for occ and ind for that individual is still considered in the output. I notice this as observations would not be dropped due to the linear dependence of immigrant strata 0 and ysmcat strata 0 ("Number of Observations Read" in the output). But I would like to know more what of what is happening if you all or others have insight. If @TL93 can share if they saw this happening as well would be great. Thank you.
... View more
03-21-2023
01:06 PM
Hi, found this thread in a Google search and saw it's been a while since this thread updated. Found that since SAS 9.3 the NOCELLMERGE option is now available for PROC TABULATE: I believe adding NOCELLMERGE to the TABLE options under PROC TABULATE to prevent merging of cells in ODS destinations. "Without this option, table cells are merged with the variable header and the first variable value in the row dimension." See below for reference. proc tabulate data=sashelp.class;
class sex;
table sex, n / nocellmerge;
run; Usage Note 57182: The NOCELLMERGE option prevents the merging of cells in PROC TABULATE output in the ODS destinations: http://support.sas.com/kb/57/182.html
... View more
11-29-2022
03:08 PM
1 Like
I just answered this for myself. The answer is no, referencing this thread: https://communities.sas.com/t5/SAS-Procedures/error-73-322-when-using-proc-causalmed-for-survival-analysis/td-p/738487
... View more
11-29-2022
03:04 PM
So is there a way to run PROC CAUSALMED with time-to-event data in SAS v9.4-based systems?
... View more