07-11-2020
Kimberly09
Fluorite | Level 6
Member since
05-28-2020
- 12 Posts
- 6 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by Kimberly09
Subject Views Posted 756 06-25-2020 01:57 PM 598 06-18-2020 06:05 PM 662 06-18-2020 02:36 PM 2389 06-16-2020 06:51 PM 2393 06-16-2020 06:47 PM 2494 06-11-2020 07:34 PM 2640 06-10-2020 04:49 PM 731 06-04-2020 06:46 PM 778 06-04-2020 03:34 PM 885 05-28-2020 07:49 PM -
Activity Feed for Kimberly09
- Posted Clustered Ttest and Chi-square in SAS on SAS Programming. 06-25-2020 01:57 PM
- Posted Re: Counting Visits by Type and Facility on SAS Programming. 06-18-2020 06:05 PM
- Posted Counting Visits by Type and Facility on SAS Programming. 06-18-2020 02:36 PM
- Posted Re: Count of hospital admissions between 2 dates on SAS Programming. 06-16-2020 06:51 PM
- Liked Re: Count of hospital admissions between 2 dates for r_behata. 06-16-2020 06:51 PM
- Liked Re: Count of hospital admissions between 2 dates for JeffMeyers. 06-16-2020 06:49 PM
- Posted Re: Count of hospital admissions between 2 dates on SAS Programming. 06-16-2020 06:47 PM
- Liked Re: Count of hospital admissions between 2 dates for ballardw. 06-16-2020 06:47 PM
- Liked Re: Count of hospital admissions between 2 dates for ballardw. 06-16-2020 06:47 PM
- Posted Re: Count of hospital admissions between 2 dates on SAS Programming. 06-11-2020 07:34 PM
- Posted Count of hospital admissions between 2 dates on SAS Programming. 06-10-2020 04:49 PM
- Posted Re: Computing Inter-Rater Reliability - Different subjects are scored by different researchers on Statistical Procedures. 06-04-2020 06:46 PM
- Posted Computing Inter-Rater Reliability - Different subjects are scored by different researchers on Statistical Procedures. 06-04-2020 03:34 PM
- Posted Re: Compute summary variables in SAS on SAS Programming. 05-28-2020 07:49 PM
- Liked Re: Compute summary variables in SAS for ChrisNZ. 05-28-2020 07:48 PM
- Posted Re: Compute summary variables in SAS on SAS Programming. 05-28-2020 07:45 PM
- Liked Re: Compute summary variables in SAS for biopharma. 05-28-2020 07:45 PM
- Posted Compute summary variables in SAS on SAS Programming. 05-28-2020 06:17 PM
-
Posts I Liked
Subject Likes Author Latest Post 1 1 1 1 1
06-25-2020
01:57 PM
Hi - I'm searching for a SAS Proc procedure to use to obtain ttest and chi-square statistics while clustering by a location variable. I'm working with longitudinal data for a randomized controlled trial. It is in wide format (1 observation per subject per row). This is not survey data so Proc survey would not the an appropriate procedure to use for this data set. I could use the basic proc ttest or proc freq/chisq to obtain the results; however, I need to account for differences within location. I'm working with binary as well as continuous variables. For example, I want to test whether gender (gen 1 =male, 2 =female) is statistically significant between the treatment and control groups (group_assign 0 = control, 1 = treatment) while clustering for location (1= NY, 2 = Chicago) and whether age (cont. var) is statistically significant between groups while clustering for location (if no clustering, I check this with proc ttest). I'll be grateful for any syntax or resource that could help me solve this problem .Thanks
... View more
06-18-2020
02:36 PM
Hi - I would like to obtain a count of ED visits and hospital admissions that occurred within 90 days by type and location (inside facility vs all other outside facilities/hospitals). I've spent the entire morning and most of the afternoon trying to figure this out to no avail. Your help is greatly appreciated! Actual sample size = 1290 I want to count the number of visits with respective to visit type and visit facility. Variables of interest: NC1 - NC6: 1 = ED visit, 2 = Hospital admission NC1LOC - NC6LOC: 20 = Inside facility, 21 - 49 = All other outside facilities I've manually counted the number of visits by each type and facility for the first observation to give you an idea of what I need help with (please see last 4 columns in the table). Also, I wonder if there's another way (besides proc sort) to organize the visit dates for each row (observation) so that they are in ascending order. This isn't a pressing need at the moment but would be helpful for future reference. Thank you so much! Sample data set INQFROM INQTO NC1 NC1LOC NC1ADMIT NC1DISCHARGE NC2 NC2LOC NC2ADMIT NC2DISCHARGE NC3 NC3LOC NC3ADMIT NC3DISCHARGE NC4 NC4LOC NC4ADMIT NC4DISCHARGE NC5 NC5LOC NC5ADMIT NC5DISCHARGE NC6 NC6LOC NC6ADMIT NC6DISCHARGE IN_ED IN_HOSPITAL OUT_ED OUT_HOSPITAL 12/23/2017 3/23/2018 1 20 2/9/2018 2/9/2018 1 20 2/19/2018 2/19/2018 1 20 2/25/2018 2/25/2018 1 20 3/5/2018 3/5/2018 1 20 3/18/2018 3/18/2018 1 27 3/22/2018 3/22/2018 5 0 1 0 12/14/2017 3/14/2018 1 20 12/20/2017 12/20/2017 2 20 12/20/2017 12/22/2017 1 20 1/10/2018 1/10/2018 2 20 1/10/2018 1/12/2018 2 26 1/15/2018 1/16/2018 2 20 1/26/2018 1/27/2018 ? ? ? ? 10/28/2017 1/26/2018 1 23 11/2/2017 11/2/2017 2 23 11/2/2017 11/8/2017 2 20 11/8/2017 11/16/2017 1 20 12/11/2017 12/11/2017 2 20 12/11/2017 12/17/2017 ? ? ? ? 6/29/2018 9/27/2018 1 20 7/20/2018 7/20/2018 2 27 7/26/2018 1 27 7/19/2018 7/19/2018 1 27 7/5/2018 7/5/2018 2 27 7/26/2018 7/30/2018 ? ? ? ? 9/5/2017 12/4/2017 1 27 9/23/2017 9/23/2017 1 27 9/23/2017 9/24/2017 2 27 9/29/2017 10/9/2017 1 27 10/17/2017 10/17/2017 1 23 10/18/2017 10/18/2017 ? ? ? ? 5/6/2018 8/4/2018 2 44 5/9/2018 5/11/2018 2 44 5/24/2018 5/24/2018 2 20 5/7/2018 5/9/2018 2 20 6/17/2018 6/19/2018 ? ? ? ? 6/5/2019 9/3/2019 1 28 7/13/2019 7/13/2019 2 28 7/15/2019 7/17/2019 2 44 7/17/2019 7/22/2019 ? ? ? ? 4/11/2019 7/10/2019 1 31 4/20/2019 4/20/2019 1 20 6/12/2019 6/12/2019 1 31 6/16/2019 6/16/2019 ? ? ? ? 11/10/2016 2/8/2017 1 20 11/10/2016 11/10/2016 2 20 11/22/2016 11/28/2016 2 20 12/7/2016 12/9/2016 ? ? ? ? 6/6/2019 9/4/2019 2 23 7/9/2019 2 23 7/31/2019 8/2/2019 2 23 8/29/2019 9/4/2019 2 23 8/29/2019 9/4/2019 ? ? ? ?
... View more
06-16-2020
06:51 PM
Thank you and the explanation is very helpful!
... View more
06-16-2020
06:47 PM
Thank you this one works!
... View more
06-11-2020
07:34 PM
Thanks everyone for your help! I was pulled to help with a grant application so haven't had time to test the codes. I plan to test each of them at some point next week. Again, your help is very much appreciated!
... View more
06-10-2020
04:49 PM
Hi, I'm trying to count the number of admissions between two dates in SAS. Data set N =1290. I think an array could solve the problem, but I don't know how to write the syntax. Please help if you can. I would like to capture total number of visits that occurred between: INQFROM (inquiry from date is date the patient was discharge home) & INQ30TO (inquiry to date which is the last date of follow up). NC1ADMIT - NC5ADMIT are the hospital readmission dates over the course of 90 days. I am only interested in hospital readmission that occurred within the first 30 days. Here is a sample of what my data set looks like. Thanks so much! STUDY_ID INQFROM INQ30TO NC1ADMIT NC2ADMIT NC3ADMIT NC4ADMIT NC5ADMIT VISIT30DAYS -manual cal. VISIT30DAYS -SAS 101 5/30/2016 6/29/2016 6/7/2016 8/14/2016 1 ? 102 9/23/2016 10/23/2016 0 ? 103 1/23/2017 2/22/2017 5/22/2017 0 ? 104 9/7/2017 10/7/2017 9/24/2017 1 ? 105 11/24/2016 12/24/2016 0 ? 106 3/26/2017 4/25/2017 6/14/2017 6/20/2017 6/30/2017 7/12/2017 7/24/2017 0 ? 107 8/7/2017 9/6/2017 0 ? 108 8/15/2018 9/14/2018 9/18/2018 0 ? 109 9/25/2019 10/25/2019 10/24/2019 1 ? 110 12/3/2019 1/2/2020 1/1/2020 1 ? 111 10/18/2018 11/17/2018 10/30/2018 11/16/2018 2 ? 112 3/16/2019 4/15/2019 4/2/2019 113 6/8/2017 7/8/2017 6/22/2017 7/3/2017 7/17/2017 114 2/16/2017 3/18/2017 2/18/2017 115 2/5/2018 3/7/2018 116 7/25/2016 8/24/2016 117 12/4/2018 1/3/2019 12/11/2018 118 1/30/2017 3/1/2017 2/25/2017 4/8/2017
... View more
06-04-2020
06:46 PM
Thank you for your reply. No, I don't have statistical evidence as to whether the 2 groups should have similar scores. However, the groups have similar demographic and clinical characteristics and the researchers seem to think the scores should be similar. I haven't done any statistical test to determine if this is the case (so far, I've only run the usual proc freq/univariate procedures). Here comes a basic question regarding the chi-square test.....Would I use the code below to determine if there's an association between the completeness variable and site (researchers), and if so, then what would I need to do? proc freq data=check;
tables complete_rate*site/chisq; /*the 2 researchers are at different sites/medical facilities*/
run;
... View more
06-04-2020
03:34 PM
Hi Community, I would like to test if 2 different researchers are rating different subjects in the same manner with respect to a dichotomous outcome. I know if both researchers had rated the same subject separately, I could determine the degree of agreement by the Kappa statistic. However, in this case, the 2 researchers conducted the same intervention on different subjects using the same assessment. Is there a statistical test I could use run in SAS to compare concordance between these 2 researchers? Thanks so much for your help! Example Data set (Actual sample size = 790) Researcher 1 Researcher 2 subject id completeness_rating subject id completeness_rating 1001 Complete (coded as 3) 2001 Complete (coded as 3) 1002 Partial (coded as 2) 2002 Incomplete (coded as 1) 1003 Incomplete (coded as 1) 2003 Incomplete (coded as 1)
... View more
05-28-2020
06:17 PM
Hi Community, I hoping you could help me determine how to create and compute 2 new summary variables that capture the total number of contacts based on provider type (MD or Social worker (SW)). The 2 new variables need to be continuous. As you can see in the table below, study_id 1001 received a total of 8 contacts during the follow-up period: 6 MD & 2 SW. I would to write a SAS code to create and compute the 2 variables (MD_tot and SW_tot). Please help or point me in the right direction. Thanks so much! Data set: 2250 observations Total # variables in data set: 138 Variables related to this question: (in table below) Variables related to this question are coded as: Con1-Con8 (1 =MD, 2 =SW; binary) New variables I'd like to create: count of total Con1-Con8 by provider contact. These will be continuous variables Sample subset of data set study_id con_tot con1 con2 con3 con4 con5 con6 con7 con8 MD_tot SW_tot 1001 8 1 1 1 1 1 2 2 1 ? ? 1002 2 1 2 ? ?
... View more