05-13-2021
sasuser3
Calcite | Level 5
Member since
07-26-2012
- 18 Posts
- 1 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by sasuser3
Subject Views Posted 645 05-13-2021 01:12 PM 741 05-12-2021 04:04 PM 1175 05-10-2021 03:03 PM 1180 05-10-2021 02:46 PM 1285 05-09-2021 05:30 PM 3202 03-02-2017 10:36 AM 3206 03-02-2017 10:30 AM 3215 03-02-2017 10:14 AM 3227 03-02-2017 10:03 AM 2070 04-25-2014 11:56 AM -
Activity Feed for sasuser3
- Posted Re: What is the minimum requirement for sample size for Multinom SAS/IML module? on Statistical Procedures. 05-13-2021 01:12 PM
- Posted What is the minimum requirement for sample size for Multinom SAS/IML module? on Statistical Procedures. 05-12-2021 04:04 PM
- Posted Re: test for equality of proportions for only specific categories on Statistical Procedures. 05-10-2021 03:03 PM
- Posted Re: test for equality of proportions for only specific categories on Statistical Procedures. 05-10-2021 02:46 PM
- Posted test for equality of proportions for only specific categories on Statistical Procedures. 05-09-2021 05:30 PM
- Liked Re: How to genarate a stack and cluster bar chart together using sgplot? for Jay54. 03-02-2017 12:24 PM
- Posted Re: How to genarate a stack and cluster bar chart together using sgplot? on Graphics Programming. 03-02-2017 10:36 AM
- Posted Re: How to genarate a stack and cluster bar chart together using sgplot? on Graphics Programming. 03-02-2017 10:30 AM
- Posted Re: How to genarate a stack and cluster bar chart together using sgplot? on Graphics Programming. 03-02-2017 10:14 AM
- Posted How to genarate a stack and cluster bar chart together using sgplot? on Graphics Programming. 03-02-2017 10:03 AM
- Posted Re: Why p=.0393 is not significant at .05 level in GLM? on Statistical Procedures. 04-25-2014 11:56 AM
- Posted Re: Why p=.0393 is not significant at .05 level in GLM? on Statistical Procedures. 04-24-2014 12:57 PM
- Posted Re: Why p=.0393 is not significant at .05 level in GLM? on Statistical Procedures. 04-24-2014 11:47 AM
- Posted Why p=.0393 is not significant at .05 level in GLM? on Statistical Procedures. 04-24-2014 10:43 AM
- Posted Re: how to divide dataset into 3 samples,each one with 50% males & females on Statistical Procedures. 07-26-2012 05:19 PM
- Posted Re: how to divide dataset into 3 samples,each one with 50% males & females on Statistical Procedures. 07-26-2012 03:55 PM
- Posted Re: how to divide dataset into 3 samples,each one with 50% males & females on Statistical Procedures. 07-26-2012 03:36 PM
- Posted Re: how to divide dataset into 3 samples,each one with 50% males & females on Statistical Procedures. 07-26-2012 12:00 PM
- Posted how to divide dataset into 3 samples,each one with 50% males & females on Statistical Procedures. 07-26-2012 11:12 AM
-
Posts I Liked
Subject Likes Author Latest Post 3
05-13-2021
01:12 PM
Thanks. I appreciate your information and the SAS/IML function. I tried the function for different sample sizes to check the effect on the results.
... View more
05-12-2021
04:04 PM
Multinom SAS/ IML module (Berry and Hurtado (1994) creates “Large-Sample Confidence Limits for Pi-Pj” in the results. (That is the heading in the results.) So, what is the minimum requirement of the size for large sample to use this module? Does it refer to the total sample or count for each category? Can this module or Catmod be used for small sample size (<15)?
Thanks for your help.
... View more
05-10-2021
03:03 PM
Thank you very much. Both methods work.
... View more
05-10-2021
02:46 PM
Thanks. Yes, I want to compare only 2 categories, but by considering the total of all 8 categories, i.e 35 in this case and not just the total of those 2 categories. The proc freq with chisq considers total of only 2 categories.
Basically, I want to test if there is a significant difference in the frequencies/counts of the 2 selected categories by considering the total observations. So, for the “general” and “central” categories, I want to consider the proportions 4/35 and 3/35 (and not 4/7, 3/7). Is there any way to test it?
(Sorry, the error message in my program was old.)
... View more
05-09-2021
05:30 PM
Hi,
I have a data with 8 categories and their counts (freq). I am interested in only 2 specific categories. So, I want to test equality of the proportions of only those 2 categories using chi square test in proc freq. However, to compute proportions, I need to consider total of all the 8 categories. How to do it?
I have many such data sets and some of the interested categories have count < 5; so I need to use Fisher's exact test on those data sets. So, how to give option (Fisher or exact) in such case?
My SAS program with data is as follows. When I run it, it considers all the categories,which I don't want:
DATA cfsstudy; INPUT cfs $ count; DATALINES; midline 19 general 4 Parietal 1 frontal 1 central 3 occipital 2 TPO 2 multifocal 3 ; RUN;
*this is the data it is saying has invalid data;
proc freq data= cfsstudy; weight count; tables cfs /chisq; * /exact; run;
I appreciate your feedback.
... View more
03-02-2017
10:36 AM
Thank you.
... View more
03-02-2017
10:30 AM
Thank you very much. I can do that way by removing the gaps between the bars of the products for each year. So they will look more like clustrered for each year. Thanks.
... View more
03-02-2017
10:14 AM
Thanks for a quick reply. But that example gives only a stack bar chart, not a stack and cluster bar chart. I would like to have at least 2 such stack bars (in a cluster) for each x-category. Fo example, if you have that type of data for another year then we would like to show such stack bars for 2 years for each product in the same chart. How to do it?
... View more
03-02-2017
10:03 AM
Hi,
In SAS 9.4, I can use sgplot to generate either stack or cluster bar chart using vbar and groupdisplay=stack (or cluster). But I have total 4 variables to display in the chart: region, year, grade, and enrollment. I would like to draw 4 'stack and cluster bars' for 4 values of "Region" in the same chart. Each stack should consist of 3 grades and there will be 2 bars for 2 values of "Year" in one cluster. Thus, there should be 4 such clusters for 4 regions. So, is it possible to genarate a stack and cluster bar chart together using sgplot?
Thnak you.
... View more
04-25-2014
11:56 AM
You are right. I also did study and understood the results correctly. I switched to lsmeans option as those results are more clear to me. I used same options as you mentioned in addition to cl just to check CL values. My problem is now solved. By the way, (Pr>F) = 0.0393 was from another example in which I had the similar problem. Thanks for all the explanation.
... View more
04-24-2014
12:57 PM
P-val = 0.0393 from my first Eample and p-val =.0007 from my second Ex (both using MEANS option) are also the same as the adjusted (from second set) p-values obtained using LSMEANS options. So, are they supposed to be significant at .05 and .001 levels, respectively, even though CLs don't mark those results for significance in MEANS option?
... View more
04-24-2014
11:47 AM
Thanks for the information. But I didn't mention F-value, I gave values from pair-wise comparisons. I am checking only main effect. So, I used proc glm data=&DataName2; class grpcode2; model BMI = grpcode2 /ss3 ; means grpcode2 / tukey alpha=.001 ; contrast 'Obese(1) vs OverWeight(2)' grpcode2 -1 1 0 ; .... run; (I tried with lsmeans/adjust=tukey and had the same results with no confidence limits.) The partial results are: Difference grpcode2 Between Simultaneous 99.9% Comparison Means Confidence Limits 1 - 2 12.2686 7.9828 16.5543 *** 1 - 3 16.6226 12.3368 20.9083 *** 2 - 1 -12.2686 -16.5543 -7.9828 *** 2 - 3 4.3540 -0.2751 8.9831 3 - 1 -16.6226 -20.9083 -12.3368 *** 3 - 2 -4.3540 -8.9831 0.2751 Contrast DF Contrast SS Mean Square F Value Pr > F Obese(1) vs OverWeight(2) 1 878.020762 878.020762 131.98 <.0001 Obese(1) vs Control(3) 1 1611.807639 1611.807639 242.28 <.0001 OverWeight(2) vs Control(3) 1 94.786580 94.786580 14.25 0.0007 So, I thought 2 vs 3 should be sig at .001 level.
... View more
04-24-2014
10:43 AM
I am using the GLM procedure to compare 3 groups with Tukey's (HSD) test for pairwise comparisons. Alpha is set to .05. In Tukey's test, I received one result as: 1 vs 3: (Pr>F) = 0.0393, not marked for significance. Why is this P not significant at .o5 level? The 95% Confidence Limits are: -0.5574 and 0.0374, which contains 0, That is why it was not selected as significant. But if I use prob, it is supposed to be significant. I noticed a similar problem in for another variable. The Value of P is .0007 and it is not significant at .001 level (99.9%). (I checked number of zeros many times.) I think I am seriously missing something here. Can somebody please explain why such discrepancy? I have to explain results tomorrow. Thanks.
... View more
07-26-2012
05:19 PM
Thanks, but it doesn't fit to my situation. Without replication is within a sample, not among samples. I again tried, but I couldn't get it.
... View more
07-26-2012
03:55 PM
Linlin, your code is short, efficient, and easy and It worked. Thanks.
... View more