Hi Everyone,
I have just started my Graduate degree, and for my meta-analysis course we are using SAS.
I have never used this program, as my preferred STATS program in my undergrad was RStudio.
I have managed to import my data set and generate a table for it in SASuniversity.
I now need to make a funnel plot and forest plot, but do not even know where to start (and our course has no guidelines).
If anyone is able to help me with this, I would be forever grateful! I have attached my data set, and below is my code I used to import and generate a table for the first steps of my homework.
Code:
PROC IMPORT DATAFILE="/folders/myfolders/sasuser.v94/MOZARTlecture4/Mozart_dataset.xlsx"
OUT=WORK.mozart_data
DBMS=XLSX
REPLACE;
RUN;
/** Print the results. **/
PROC PRINT DATA=WORK.mozart_data; RUN;
Start by googling. Sanjay, me, and others have all written extensively about forest plots.
Here are a few hints to help you get started:
Calling @Rick_SAS for funnel plot.
Rick just wrote a blog about it . Search at
Hello,
Making forest plots is generally a tedious process when it comes to actually performing the analysis and putting the data set together. It looks like you've already done this for the most part. From there you can use simple tools like SCATTER, HIGHLOW, and YAXISTABLE in SGPLOT to take care of the heavy lifting. I have a paper/macro that makes forest plots while also automating the analysis, but perhaps you'd be interested in reading about the methods I use (which are a bit more advanced).
This blog post has complete code on how you make a Forest plot using data that you have available in SAS as a sample data set. You can then replace the data with your own data:
https://blogs.sas.com/content/graphicallyspeaking/2017/10/22/tips-tricks-segmented-discrete-axis/
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
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.
Ready to level-up your skills? Choose your own adventure.