Hi all,
First and foremost let me thank all..for the quick
correspondance for all my mails and question. I can't
thank you guys enough. You are really great community
here.
I have a question. I am running Splus 6.0 Rel 2 on
Windows NT 4.0.
# data frame
#col1 col2 col3
A1 25 12
A2 12 11
A3 10 21
A4 -16 1
A5 -18 3
B1 -21 5
B2 -25 8
B3 -9 8
B4 15 8
B5 22 15
. . .
. . .
. . .
I want to group the data into "optimized groups" using
this objective function.
= (Sum[1 to G] [ Ng*CORg*STDEVg]) / (SUM[1 to G]Ng)
Where
Ng Number of Names in Group g
CORg is the correlation between col2 and col3 in Group
G
STDEVg is the Standard deviation in group G
SUM[1 to G][ Ng*CORg*STDEVg]) means sum the product
Ng*CORg*STDEVg for all the groups - SUMMATION OPERATOR
SUM[1 to G]Ng mean sum the Ng for all the groups -
SUMMATION OPERATOR
So I like to see how many groups optimizes the overall
objective function and also the constiuents of the
optimized group.
I have tried with many loops and It is not really
getting to where I want. I hope someone here will have
some method to get the results using iterative
process.
And again thanks a lot for all your help
Joepaul
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
|