10-08-2021
Awesome1
Fluorite | Level 6
Member since
01-31-2019
- 5 Posts
- 13 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by Awesome1
Subject Views Posted 2099 10-22-2019 11:30 AM 2108 10-22-2019 10:58 AM 2112 10-22-2019 10:54 AM 2114 10-22-2019 10:52 AM 2210 10-21-2019 06:44 PM -
Activity Feed for Awesome1
- Liked Re: LASSO in Logistic regression for Haris. 10-29-2020 10:35 AM
- Liked Re: LASSO in Logistic regression for RobF. 10-29-2020 10:34 AM
- Liked Re: transpose long to wide - two ID variables, multiple measures for Tom. 06-25-2020 10:06 AM
- Liked Re: WARNING: This CREATE TABLE statement recursively references the target table. A consequence of this is a possible data integrity for RW9. 06-17-2020 04:04 PM
- Liked Re: WARNING: This CREATE TABLE statement recursively references the target table. A consequence of this is a possible data integrity for cellurl. 06-17-2020 04:04 PM
- Liked Re: Axis attributes in sgplot for DanH_sas. 11-20-2019 05:18 PM
- Liked Re: Axis attributes in sgplot for Juen. 11-20-2019 05:18 PM
- Liked Axis attributes in sgplot for brooksj029. 11-20-2019 05:17 PM
- Posted Re: How to Create an Annotated Cluster Bar Plot Using SGPLOT on Graphics Programming. 10-22-2019 11:30 AM
- Liked Re: How to Create an Annotated Cluster Bar Plot Using SGPLOT for ballardw. 10-22-2019 11:19 AM
- Posted Re: How to Create an Annotated Cluster Bar Plot Using SGPLOT on Graphics Programming. 10-22-2019 10:58 AM
- Posted Re: How to Create an Annotated Cluster Bar Plot Using SGPLOT on Graphics Programming. 10-22-2019 10:54 AM
- Posted Re: How to Create an Annotated Cluster Bar Plot Using SGPLOT on Graphics Programming. 10-22-2019 10:52 AM
- Liked Re: How to Create an Annotated Cluster Bar Plot Using SGPLOT for Ksharp. 10-22-2019 10:39 AM
- Liked Re: How to Create an Annotated Cluster Bar Plot Using SGPLOT for Jay54. 10-22-2019 10:38 AM
- Liked Re: How to Create an Annotated Cluster Bar Plot Using SGPLOT for DanH_sas. 10-22-2019 10:38 AM
- Posted How to Create an Annotated Cluster Bar Plot Using SGPLOT on Graphics Programming. 10-21-2019 06:44 PM
- Liked Re: Use whole page for SGPLOT for PGStats. 05-14-2019 12:23 PM
-
Posts I Liked
Subject Likes Author Latest Post 1 3 4 2 1
10-22-2019
11:30 AM
Thanks for responding. I think keeping the order of the vbars will make it easier to take in with multiple before/after tests so I'd say it is more important. I definitely want to keep the bars in the same order and have the range indicator move to the right side of the pair as needed! The image provided just happened to have increases after the intervention but my data has reductions in proportions. I was able to modify the code Ksharp provided to capture this. I'm working on making it more automated but it is a great start. If you have any ideas on how to best do so, I'd love to hear them! Thanks again for your response!
... View more
10-22-2019
10:58 AM
I see where Ksharp used these in their code. Thanks for the response and offer of additional assistance! Greatly appreciated 🙂
... View more
10-22-2019
10:54 AM
Thanks for the response! Much appreciated. I'll use this during formatting.
... View more
10-22-2019
10:52 AM
data test;
infile cards truncover;
input id time $ per p l h v : $10. w pp;
format per p l h w pp PERCENTN8.1;
cards;
1 Before .473 . . . . . .
1 After .379 .473 .379 .473 ——— -.2 .493
2 Before .778 . . . . . .
2 After .619 .778 .619 .778 ——— -.204 .798
;
proc sgplot data=test;
vbarparm category=id response=per /group=time groupdisplay=cluster;
scatter x=id y=p/ markerchar=v discreteoffset=0.09 ; ** top line **;
scatter x=id y=p/ markerattrs=(symbol=triangleleftfilled color=black size=10) discreteoffset=0.02 ; ** arrow to the right **;
scatter x=id y=pp/ markerchar=w discreteoffset=0.2 markercharattrs=(size=10) ; ** percent label **;
highlow x=id low=l high=h/discreteoffset=0.2 lineattrs=(color=black) lowcap=filledarrow; ** arrow pointing down **;
yaxis offsetmin=0;
run; I made some minor modifications to fit my data but this was great! Thanks, Ksharp!!
... View more
10-21-2019
06:44 PM
Hi all! While looking for a way to graphically present results from McNemar's test, I found the attached figure (from https://fmcna.com/insights/white-papers/effectiveness-velphoro-patients-chronic-dialysis/). Is there a way to make this plot in Unix SAS v9.4 (TS1M5)? I thought it would be easy enough - create a cluster bar plot using precomputed data (to ensure the proper denominator is used) and an annotated dataset for the arrows and text. However, it has proven much more difficult than that. I could not figure out how to use pre-computed proportions in the vbarparm statement to make the simple bar plot nor how to generate coordinates for the arrows/text in the annotated dataset given the xaxis is categorical and clustered. Can anyone offer assistance? I'd greatly appreciate it! Best, Amanda
... View more