Help using Base SAS procedures

Getting output from Proc Power

Accepted Solution Solved
Reply
Contributor
Posts: 69
Accepted Solution

Getting output from Proc Power

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.


Accepted Solutions
Solution
‎10-13-2015 12:45 PM
Super User
Posts: 10,483

Re: Getting output from Proc Power

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


All Replies
Solution
‎10-13-2015 12:45 PM
Super User
Posts: 10,483

Re: Getting output from Proc Power

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.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 241 views
  • 0 likes
  • 2 in conversation