BookmarkSubscribeRSS Feed
swsh016
Calcite | Level 5

 

 Col1

The year 2013-14

 

col2

Consumers of different vegetable

Task1

Select consumers of beet

 

col3

Intake (gms) of all vegetable

Task2

select quantity of beet intake

col4

 

Find Mean_1 quantity of beet intake 

The year 2015-16

Select consumers of beet

select quantity of beet intake

Find Mean_2 quantity of beet intake 

The year 2017-18

Select consumers of beet

select quantity of beet intake

Find Mean_3 quantity of beet intake 

 

Compare 3 means with ANOVA

2 REPLIES 2
ballardw
Super User

Your subject is pretty meaningless as Col3 shows no numeric values, so no "mean" can be calculated. Also how are we supposed to use the value Col2 to select anything from Col3? We need some sort of rules.

 

I suspect that you do not even have a SAS data set.

Show us actual values, describe how to use Col2 with Col3 and best would be to include a small worked example given the example values.

swsh016
Calcite | Level 5
[image: image.png]
I did the selection of values from second colum :
aspfmt=.;
if DR1IFDCD in (75100800 75202011 ) then
aspfmt=1;
else
aspfmt=0;
I dont know how to select values from DR1GRMS that match values from
DR1FDCD and find mean of those values.
Thanks

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 2 replies
  • 347 views
  • 0 likes
  • 2 in conversation