03-20-2020
Mystik
Obsidian | Level 7
Member since
11-09-2018
- 36 Posts
- 3 Likes Given
- 2 Solutions
- 3 Likes Received
-
Latest posts by Mystik
Subject Views Posted 2070 03-19-2020 03:22 PM 2078 03-19-2020 01:37 PM 2136 03-18-2020 09:32 PM 2169 03-18-2020 07:53 PM 2291 12-09-2019 06:24 PM 2363 12-08-2019 03:16 PM 2391 12-08-2019 02:51 PM 2398 12-08-2019 02:32 PM 3008 11-27-2019 06:33 PM 3015 11-27-2019 06:22 PM -
Activity Feed for Mystik
- Got a Like for Re: nested case-control sampling macro analysis matching. 03-19-2020 03:58 PM
- Posted Re: nested case-control sampling macro analysis matching on SAS Programming. 03-19-2020 03:22 PM
- Liked Re: nested case-control sampling macro analysis matching for Reeza. 03-19-2020 03:21 PM
- Posted Re: nested case-control sampling macro analysis matching on SAS Programming. 03-19-2020 01:37 PM
- Posted Re: nested case-control sampling macro analysis matching on SAS Programming. 03-18-2020 09:32 PM
- Posted nested case-control sampling macro analysis matching on SAS Programming. 03-18-2020 07:53 PM
- Posted Re: How do i run a univariate analysis for this? on New SAS User. 12-09-2019 06:24 PM
- Posted Re: How do i run a univariate analysis for this? on New SAS User. 12-08-2019 03:16 PM
- Posted Re: How do i run a univariate analysis for this? on New SAS User. 12-08-2019 02:51 PM
- Posted How do i run a univariate analysis for this? on New SAS User. 12-08-2019 02:32 PM
- Posted Re: Delete subjects that have duplicates; not the duplicates on SAS Programming. 11-27-2019 06:33 PM
- Posted Re: Delete subjects that have duplicates; not the duplicates on SAS Programming. 11-27-2019 06:22 PM
- Posted Re: Delete subjects that have duplicates; not the duplicates on SAS Programming. 11-27-2019 06:17 PM
- Posted Re: Delete subjects that have duplicates; not the duplicates on SAS Programming. 11-27-2019 05:47 PM
- Posted Delete subjects that have duplicates; not the duplicates on SAS Programming. 11-27-2019 05:17 PM
- Posted Re: How do i remove duplicates from my outcomes? on SAS Programming. 11-29-2018 03:42 PM
- Posted How do i remove duplicates from my outcomes? on SAS Programming. 11-29-2018 02:48 PM
- Posted Re: How do i code a group of codes as Pheno and combination of 2 or more codes as Pheno? on SAS Programming. 11-27-2018 10:35 AM
- Posted Re: How do i code a group of codes as Pheno and combination of 2 or more codes as Pheno? on SAS Programming. 11-26-2018 11:03 AM
- Posted How do i code a group of codes as Pheno and combination of 2 or more codes as Pheno? on SAS Programming. 11-25-2018 05:58 PM
-
Posts I Liked
Subject Likes Author Latest Post 1 1 1 -
My Liked Posts
Subject Likes Posted 2 03-19-2020 03:22 PM 1 11-14-2018 04:57 PM
03-19-2020
03:22 PM
2 Likes
Thank you Reeza! Actually, it was your solution that actually works. Dunno why i marked mine as the solution. Thanks again.
... View more
03-19-2020
01:37 PM
Thank you. I did as Reeza says and it worked.
... View more
03-18-2020
09:32 PM
I replaced "PROC SURVEYSELECT" statement with SELECTALL as you suggested (find below) but got the error message: 6 selectall data=m4_case&i method=srs n=10 seed=2009 out=m6_case&i; --------- 180 ERROR 180-322: Statement is not valid or it is used out of proper order. selectall data=m4_case&i method=srs n=10 seed=2009 out=m6_case&i; id IDnum case_id ctrl_id dx grp_cc; run;
... View more
03-18-2020
07:53 PM
Hello, I am running a nested case-control sampling macro analysis matching on n=10 controls. i.e.. proc surveyselect data=m4_case&i method=srs n=10 seed=2009 out=m6_case&i; id IDnum case_id ctrl_id dx grp_cc; run; However, i get these messages when the matching number is less than 10; ERROR: The sample size, 10, is greater than the number of sampling units, 9. NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set M6_CASE2096 may be incomplete. When this step was stopped there were 0 observations and 5 variables. I have relaxed my matching criteria to accommodate more case-control matches as possible. For now i want to force the sas program to accept those n=9 etc to be matched using the same procedure stated above whilst still using the n=10 criteria. Pls any help will be welcome.
... View more
12-09-2019
06:24 PM
Yes i agreed univariate is one variable in the model but remember there is sex in there bcos i wanted to stratify by sex (male vs female) to create a table stratified by sex. As i said earlier, the dependent variable is sex and In this case you have to include sex. Eventually, i got it all figured out as the problem was coming from the "estimate" side; e.g. -1 1 and -1 1 0 0 for males. So the sas code below worked perfectly for me now. proc genmod data=avia88 desc; class sex csa; model acet=sex csa sex*csa/link=logit dist=binomial type3; estimate "M:" csa -1 1 csa*sex -1 1 0 0/exp; estimate "W:" csa -1 1 csa*sex 0 0 -1 1/exp; run;
... View more
12-08-2019
03:16 PM
Thank you. here is it. proc genmod data=avia88 desc; class sex; model acet=sex csa sex*csa/link=logit dist=binomial type3; estimate "M:" sex csa csa*sex 1 -1 0 0/exp; estimate "W:" sex csa csa*sex 0 0 -1 1/exp; run; the independent variable is sex. adjusting for csa (1,0), age(18, 23, 89 etc) etc... but for now i want to do a univariable analyses with each variable one by one in the form of OR 95CI
... View more
12-08-2019
02:51 PM
made a mistake in the first one. This is it below: proc genmod data=avia88 desc; class sex; model acet=sex csa sex*csa/link=logit dist=binomial type3; estimate "M:" csa csa*sex 1 -1 0 0/exp; estimate "W:" csa csa*sex 0 0 -1 1/exp; run
... View more
12-08-2019
02:32 PM
Hello, so am running a univariate analyses by putting each variable alone in the model. the outcome is acet; the dependent variable is sex (coded Men=1 and Women=2) the independent variables are; csa (coded as 1 or 0) and age (coded which is numeric i.e. 18, 32, 56, 89, etc) For example below; i tried putting only sex in the model but i keep getting error from the SAS log. please any help? proc genmod data=avia88 desc; class sex; model acet=csa sex*csa/link=logit dist=binomial type3; estimate "M:" csa csa*sex 1 -1 0 0/exp; estimate "W:" oral_cs csa*sex 0 0 -1 1/exp; run;
... View more
11-27-2019
06:33 PM
WORKED!!! THANKS
... View more
11-27-2019
06:22 PM
i have over 30,000 subjects with over 120, 000 observations and 15 variables. Pls your first data step with the datalines wouldn't work. I gave the above dataline just to give a brief description of the data. if you kindly give me another data steps to run the first step. thank you.
... View more
11-27-2019
06:17 PM
sorry this is a data with over 120,000 observations and 16 variables. the expected out put is to work with subjects (such as T02 and T03) that do not have duplicates. This stage is the exclusion stage before the incoming logistic analyses.
... View more
11-27-2019
05:47 PM
Thanks. Actually there are no missing values; for instance this is how the data looks like; ID indexdate Grp 1 Grp2 hxdate hx_60 T01 11Jun2006 OCS OCS 11Jun2006 1 T01 11Jun2006 OCS ** 21Jul2006 1 **=MISSING T01 11Jun2006 OCS OCS 16Sep2006 1 T02 06Jan2010 BASA BASA 06Jan2010 1 T03 12May2013 LOMA LOMA 12May2013 1 T04 17Sep2007 ABAS ABAS 17Sep2007 1 T04 17Sep2007 ABAS ** 19Oct2007 1 T04 17Sep2007 ABAS ** . 11Dec2007 1 As depicted above, Subject with ID=T01 has 3 duplicates and needs to be excluded, i.e delete T01 and not the duplicates. Also T04
... View more
11-27-2019
05:17 PM
Hello, Pls can someone help me to delete subjects that have duplicates; not the duplicates but any subject that has duplicates recordings (variable is hx_60), that subject must be deleted. The prog below does not work for me but only deletes duplicates but not the subject having duplicates; proc sort data=krag.px_60 out=krag.px_60a noduprecs; by subject_ID hx_60; run;
... View more
11-29-2018
03:42 PM
Thank you. however, i will still get duplicates because, those codes in medic variable which are not 1, 2, 3 will still be available in medic variable. So those observations will still be present in medic. Running a proc freq on outcome variable will yield those values not coded 1,2 or 3 as missing. Also the outcome variables of 1, 2 or 3 are based on a single code in medic or combination of codes.
... View more
11-29-2018
02:48 PM
Hello. I have a SAS file called Prg_grp. One of the variables in this file is called "outcomes" coded as 0,1,2 or 3. 1 in the outcome denotes = asthin 2 = Coap 3 = Soca However any of my outcome that is not either of the above is denoted = 0. I have 11, 829,526 of observations but my total number based on ID without duplications is 85,000. My file has other variables such as ID, medic, medic_date. I want to remove duplicates so that only an ID has either 1, 2, or 3 and the total number of rows corresponding to my ID is exactly 85,000.
... View more