BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
daszlosek
Quartz | Level 8

Hello, I would like to get a range of both the power and totlaN output from proc power while using the current ntotal = 3514. 

 

For example, I would like this output table:

 

N       power

100       .10

200       .20

300       .30

 

 

proc power;
twosamplefreq test=pchi
sides = 2
alpha = 0.05
groupproportions = (0.0965, 0.0627)
ntotal = 3514
power = .;
title 'Cohort 1 / 35% RRR';
plot x =N min=200 max = 8000;
ods output output = power;
proc print data=Power;
var NTotal Power ;
run;

 

 

Is this possible? I know I can create a graph with this range, but can I get the output from the graph?

 

Thank you!

 

Donald S.

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

ODS Output PlotContent = want;

In the Proc Power code should the data from plots. Note that the output in this set is not normally displayed as part of the proc tables displayer.

View solution in original post

1 REPLY 1
ballardw
Super User

ODS Output PlotContent = want;

In the Proc Power code should the data from plots. Note that the output in this set is not normally displayed as part of the proc tables displayer.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 4147 views
  • 0 likes
  • 2 in conversation