BASKET ANALYSES.

by Irina 14. April 2007 08:06

data  PRODUCTS;
set    PRODUCTS;
array dich[15]  prod1-prod15;

array name{15} $ _temporary_ ('p1',....,'p2' );

do i=1 to 15;
category=dich [i];
prod=name[i];
num_product=i;
output;
end;
keep sd10_numerator category num_product ;
run;


data BASKET_ANALYSES;
set zevet1.for_model(where=(tzvt_activ_form='300'));
array PR prod1-prod15;
m=0;
do i=1 to 15;
do j=i+1 to 15;
do k=j+1 to 15;

comb=PR[i]+PR[j]+PR[k];
name=compress(vname(aa[i])||'_'||vname(aa[j])||'_'||vname(aa[k]));
m+1;
if comb<3 then continue;
else output;

end;
end;
end;
run;

Now we wante to fix for each kind of treatment the most frequent combinations:

proc freq data=basket_analyses;
tables name*treatment/out=basket_result;
run;

proc sort data=basket_result;
by treatment descending count;
run;

data basket_result;
set basket_result;
by  treatment ;
retain counter ;
if first.treatment  then counter=1;
if treatment =lag(treatment) then counter=counter+1;
output;
run;

data frequent_resultes;
set basket_result;
if counter  <=4;
run;

Comments

7/25/2011 11:33:59 PM


It's okay... love looking at your lovely post.
Not much words needed, really.

Pandora Charms

7/25/2011 11:34:37 PM

Lively and interesting picture and article is quite uplifting.I like it very much.

Christian Louboutin Shoes

7/25/2011 11:35:33 PM

I am so glad this internet thing works and your article really helped me. Might take you up on that home advice you

Pandora Beads

7/25/2011 11:36:06 PM


This site is very meritorious and detestable,I appreciate!

Monster Beats

10/20/2011 4:00:08 AM

Nice post. I like the way you start and then conclude your thoughts. Thanks for this information .I really appreciate your work, keep it up

Aprilaire 2200 filter

10/20/2011 4:17:57 AM

Amazing!I also wish him good luck to defend his gold medal. I like to share it with all my friends and hope they will also encourage him.

Garage Doors In Las Vegas

10/21/2011 3:03:11 AM

Usually I do not post comments on blogs, but I would like to say that this blog really forced me to do so! Thanks,for a really nice read.

Miami Interior Designer

10/21/2011 5:25:06 AM

Hello, I truly enjoyed reading your post. I found your site from Bing. Will bookmark to return later. Thanks!

pest control sterling

10/21/2011 5:26:17 AM

I've surfed the net more than three hours today, and your blog was the coolest of all. Thanks a lot, it is really useful to me.

Bedbug VA

10/21/2011 5:27:45 AM

Pretty Interesting post. Could not be written any better. Thanks for sharing!

Golf Las Vegas

10/21/2011 5:42:26 AM

Hi, I just stumbled upon your post,a good view point. Hey your post left me quenching for more.

Centrally Located Apartments

10/21/2011 6:03:08 AM

You got a really useful blog. I have been here reading for about an hour. I am a newbie and your success is very much an inspiration for me.

Galapagos Charters

10/21/2011 6:08:21 AM

Nice article, I am a big time fan of your site, keep up the nice work, and I will be a frequent visitor for a very long time.

whistler to yvr

10/21/2011 6:10:58 AM

Hi… that was great stuff.. I really like this subject. Could you tell me more … I would love to explore.

Last Minute Flights

11/16/2011 5:15:06 AM

You have a very good site, well constructed and very interesting i have bookmarked you hopefully you keep posting new stuff.

ProfitBySearch

Add comment


(will show your Gravatar icon)  





Live preview

2/5/2012 8:40:15 PM

 

About the author

Irina Spivak Irina Spivak
Team Leader at G-Stat. More...


Send mail Email

Blogroll

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2012

    Sign in

    eXTReMe Tracker