BookmarkSubscribeRSS Feed
PhanS
Obsidian | Level 7

Dear All,

Merry Christmas!

 

I read a paper, see link, that contains nice graphs. I greatly appreciate your instruction for this graph. Please kindly see the attached file.

https://doi.org/10.1186/s13104-017-3044-4

 

Thank you.

 

Phan S.

2 REPLIES 2
PeterClemmensen
Tourmaline | Level 20

This code might get you started. Post relevant data in the form of a data step to get a tested code answer

 

proc sgplot data=sashelp.class;
vline age / response=height group=sex stat=mean limitstat=clm markers
 groupdisplay=cluster clusterwidth=0.1 markerattrs=(size=5 symbol=circlefilled);
run;
PhanS
Obsidian | Level 7

Dear Draycut,

Thank you !!

I attached your SAS code vs. mine. Your SAS code comes with a nice graph.

 

However, I wonder if you can address my previous post that:

y is Lsmeans as outcomes of interactions between sex and BP

x is time 

 

For mine, I am also looking for a graphs that:

y is means of phs as outcome of degree_ubn and age_cat

x is cycle (1, 2, 3)

 

Thank you 

 

data want;
input Obs Id cycle degree_ubn age_cat phs;
datalines;
1 101 1 1 1 47
1 101 2 1 1 46
1 101 3 2 1 49
2 102 1 1 1 56
2 102 2 2 1 52
2 102 3 2 1 30
3 103 1 3 2 38
3 103 2 1 2 53
3 103 3 2 2 32
4 104 1 1 3 60
4 104 2 4 3 46
4 104 3 5 3 32
5 105 1 1 3 47
5 105 2 3 3 46
5 105 3 2 3 56
6 106 1 1 2 47
6 106 4 1 2 40
6 106 5 2 2 35
;
run;