SAS Software for Learning Community

Welcome to the exclusive online community for all SAS learners.
BookmarkSubscribeRSS Feed
Vaisha
Calcite | Level 5
How to do priori hypothesis for anova program
4 REPLIES 4
sbxkoenk
SAS Super FREQ

Hello,

 

Are you talking about Bayesian methods?

 

SAS provides two avenues for Bayesian analysis: built-in Bayesian analysis in certain modeling procedures and the MCMC procedure for general-purpose modeling. The built-in Bayesian procedures are ideal for data analysts beginning to use Bayesian methods, and they suffice for many analysis objectives.

See :
Paper SAS400-2014
An Introduction to Bayesian Analysis with SAS/STAT® Software
Maura Stokes, Fang Chen, and Funda Gunes
SAS Institute Inc.
https://support.sas.com/resources/papers/proceedings14/SAS400-2014.pdf

 

Your ANOVA is a General Linear Model (GLM)

and you can do Bayesian Inference in the General Linear Model using a Bayesian MCMC routine.

 

PROC ANOVA and PROC GLM do not have a BAYES statement, but PROC GENMOD does have a BAYES statement.

If needed you can use PROC GENMOD with a normal distribution and the identity link function (to mimic PROC GLM).

 

BR,

Koen

 
Ksharp
Super User
And better post it at Statistic Forum .
@StatDave @SteveDenham could give you a hand.
Ksharp
Super User
/*
Did you mean "Test for Homogeneity of Variance" ?
Check HOVTEST option:
*/
proc glm data=sashelp.heart;
class bp_status;
model weight=bp_status/solution;
means bp_status/hovtest;
quit;
SteveDenham
Jade | Level 19

If it is as simple as comparing means, you can use a MEANS statement (ANOVA, GLM) or an LSMEANS statement (GLM and others). If the comparison is more complicated, use an LSMESTIMATE statement to construct the a priori comparison you wish to make.

 

SteveDenham

sas-innovate-white.png

Our biggest data and AI event of the year.

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.

 

Register now!

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 974 views
  • 0 likes
  • 4 in conversation