BookmarkSubscribeRSS Feed
jacksonan123
Lapis Lazuli | Level 10

 I have the following data set which has INCL, slope, and CLnr/CLr values.  I found code to compare slopes or CLnr/CLr between the different INCL classes.  My question is can one compare both slope and CLnr/CLr values simultaneously between the INCL classes?

The post was altered due to invalid HTLM but all of the slopes and CLnr/CLr values should be in the same columns.

INCLDrugSlope Slope CLnr/CLrCLnr/CLr
CIDofAztreonam1.43 0.724
CIDofCarumonam1.14 0.265
CIDofCefepime 1.04 0.176
CIDofCefetamet1.22 0.25
CIDofCeftazidime1.17 0.351
CIDofCidofovir 1.1 0.176
CIDofCiprofloxacin1.06 0.639
CIDofMeropenem1.06 0.316
CIDofMetoclopramide3.43 3.76
CIDofTiotropium1.7 0.932
NOCIDofAztreonam1.43 0.724
NOCIDofCarumonam1.14 0.265
NOCIDofCefepime 1.04 0.176
NOCIDofCefetamet1.22 0.25
NOCIDofCeftazidime1.17 0.351
NOCIDofCiprofloxacin1.06 0.639
NOCIDofMeropenem1.06 0.316
NOCIDofMetoclopramide3.43 3.76
NOCIDofTiotropium1.7 0.932
NOCIDCIPRAztreonam1.43 0.724
NOCIDCIPRCarumonam1.14 0.265
NOCIDCIPRCefepime 1.04 0.176
NOCIDCIPRCefetamet1.22 0.25
NOCIDCIPRCeftazidime1.17 0.351
NOCIDCIPRMeropenem1.06 0.316
NOCIDCIPRMetoclopramide3.43 3.76
NOCIDCIPRTiotropium1.7 0.932
NOCIPROAztreonam1.43 0.724
4 REPLIES 4
ballardw
Super User

Try posting example data using these instructions: https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat...

 

That creates data step code that you can post here or attach as a text file. Then you need not worry about malformed copy/paste operations and then users here can easily create a SAS data set to test code against. As it is, if I wan'ted to do attempt some code I would have to 1) fix your layout issues 2) write a data step (with the possibility of variable types not matching in more complex cases)

 

What type of comparisons do you want to do?

jacksonan123
Lapis Lazuli | Level 10

The reply was helpful.

DanH_sas
SAS Super FREQ

Is this the kind of comparison you want?

 

drugtest.png

 

proc sgpanel data=drugtest;
panelby incl / onepanel novarname;
series x=drug y=slope;
series x=drug y=CLnr;
run;
jacksonan123
Lapis Lazuli | Level 10

Yes this would work quite well.

 

Thanks

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1001 views
  • 0 likes
  • 3 in conversation