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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

5 Steps to Your First Analytics Project Using SAS

For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.

Find more tutorials on the SAS Users YouTube channel.

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