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.
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.
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.
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.
Ready to level-up your skills? Choose your own adventure.