BookmarkSubscribeRSS Feed
NEPO
Calcite | Level 5

Hello Dear SAS experts,

Anyone  can help me how to write a code for 2 way ANOVA? 

My experiment is about evaluating pots holes  (2holes, 3holes, 3holes ) on  two different varieties (V1, v2).

my data look like

holesvarietyheight
H2V18.5
H2v18
.......7
.........7.8
H2v15.5
H2v16.5
...............
H2v25.5
H2v2...5.9
etc....

.....

i ma not familiar with sas language. thanks!

Anyone who can help me  can reach me through "jeannepohu@gmail.com"

3 REPLIES 3
PaigeMiller
Diamond | Level 26

Generally, we don't do your work for you here in this Community.

 

You could see if the example in the documentation can be easily modified to work in your situation (I think it will)

http://documentation.sas.com/?docsetId=statug&docsetTarget=statug_glm_examples03.htm&docsetVersion=1...

 

If not, post what you have tried, and we will advise.

--
Paige Miller
Rick_SAS
SAS Super FREQ

We can't tell what your 'holes' variable represents because all values are 'H2'. I assume that there are other values such as 'H1'.

 

The basic syntax is 

 

ods graphics on;

PROC GLM data=have;

class holes variety;

model height = holes | variety;

run;

NEPO
Calcite | Level 5

thanks!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 3 replies
  • 868 views
  • 1 like
  • 3 in conversation