ࡱ>      Microsoft Forms 2.0 FormEmbedded Object9q$ VERSION 5.00 Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} About Caption = "About..." ClientHeight = 9015 ClientLeft = 45 ClientTop = 330 ClientWidth = 8025 StartUpPosition = 1 'CenterOwner TypeInfoVer = 23 End ilvnop$  QJ};5%R KQDBVBFramePROJECTwmPROJECTASummaryInformation(L  !"$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijlmopqrstuvwxyz{|} s \pPawel Krawczyk Ba= ThisWorkbook=xKx<}(<X@"1Arial1Arial1Arial1Arial1Arial"$"#,##0_);\("$"#,##0\)!"$"#,##0_);[Red]\("$"#,##0\)""$"#,##0.00_);\("$"#,##0.00\)'""$"#,##0.00_);[Red]\("$"#,##0.00\)7*2_("$"* #,##0_);_("$"* \(#,##0\);_("$"* "-"_);_(@_).))_(* #,##0_);_(* \(#,##0\);_(* "-"_);_(@_)?,:_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)6+1_(* #,##0.00_);_(* \(#,##0.00\);_(* "-"??_);_(@_)"S"\ #,##0;\-"S"\ #,##0#"S"\ #,##0;[Red]\-"S"\ #,##0$"S"\ #,##0.00;\-"S"\ #,##0.00)$"S"\ #,##0.00;[Red]\-"S"\ #,##0.00>9_-"S"\ * #,##0_-;\-"S"\ * #,##0_-;_-"S"\ * "-"_-;_-@_-,'_-* #,##0_-;\-* #,##0_-;_-* "-"_-;_-@_-FA_-"S"\ * #,##0.00_-;\-"S"\ * #,##0.00_-;_-"S"\ * "-"??_-;_-@_-4/_-* #,##0.00_-;\-* #,##0.00_-;_-* "-"??_-;_-@_-                     ! `~Sheet1Tcc s  :p  dMbP?_*+%"??_-U>@7 Sheet1 <" ^7!4#<=S   %  %H %%%8@` *,(8@p @l @\ @pX @H @(8 @@( @X @ @ @ @ @ Resi@ yClo` % X  `@\TL $*\Rffff*0i4c124e17*\R3*#50*\R0*#14$*\Rffff*0m4c124e17*\R0*#1*\R3*#4e*\R3*#4d*\R3*#8c*\R1*#d74""W  H<3X    "   (8 "  @HPX"` ]@]``7u& %"%$.ings\w cal Se)Cannot add a menu item to the Tools menu. * ,A@(d` , %.B@0@ !.!2.  ,94General.ShowNurseryToolbar96qk 8B@:o]]7u& %"%$. , %.B@0XoPHpAttribute VB_Name = "ThisWorkbook" Bas0{00020P819-0C$0046} |GlobalSpacFalse dCreatablPredeclaIdTru BExposeTemplateDerivBustomi6zD2P Sub _Ope@n() Dim ctl As CommandBarControlMenuItemOn Error ResuNext Set1= Application.6s(1).Find;(ID(:=37QIfIs Nothing Then0MsgBox "Cannot add a m , i,to the Tools.", vbCrit#l, A@PPNAMEE?wF@*BCs( ).DeletpE >GoTo n0G&>N=A1F.Add With E .capAL *.OnAc"General.ShowN@ursery=b arE End AIf2  BeforeCJl(gceBBbean+U_P%@1^^P@N'H# rU   '!)I)q)1 ) $Q***** ' (1('#4Y(9(` ` IW| KW'%'%'(%(H7u%'8%X(\%lp! p dl HX Qx)plX lxc3'':HN:\N 6:\%x5KxWA t6 lt    cK  0xt,plX0   44PrU @$`T(A`X Y#n/^7#xME (SLSS<N0{00020820-0000-0000-C000-000000000046}H(%0(8L xAttribute VB_Name = "She@et1" Bast0{00020820- C$0046} |Global!SpacFalse dCreatablPre declaIdTru BExposeTemplateDeriv$Bustom izD2rU $ `$ `DGeneral2H__SRP_dC:__SRP_c~~Util  L $*\Rffff*0m4c124e17*\R3*#4e*\R3*#50*\R3*#92$*\Rffff*0K4c1254b4$*\Rffff*0J4c12548d*\R3*#51*\R3*#51*\R3*#2e*\R3*#34*\R3*#4f*\R3*#30*\G{AC2DE821-36A2-11CF-8053-00AA006009FA}#2.0#0#..\..\..\..\..\..\WINDOWS\system32\FM20.DLL\2#Microsoft Forms 2.0 Object Library*#42$*\Rffff*0K4c1249e9*\R0*#19*\R0*#13*\R3*#4d*\R3*#8c*\R1*#d7*\R1*#e8*\R1*#2ac=   * (P Jx J H *` F D D  2h H L  F8 F F L >` F F    >0 $ >p & > "  J J( Hx * F D8 D 2 H LH  F F F( Lp > F FH  ,   " P &@ h p 9x $   =        "  8 @ H  $P x =    E  @ b fx  bhP{9^7>xMED(LF (L > <<<<<< <$<(<,<0<4<8<<<@""*LPLLL"LLLL<<<<<<<<<<<<<<<<<<<<<<<<<< Simple Decision Tree Toolbar 1.3 % :`Vo= Dxx% N0`loWWP Dx% t% Pp(ee S% R` kpI ReceI buteI4 e usI 1.I liedI 0NTABI$ CULA xh% tense% pp`JI4 EalI ot, I nses xH****% th****% ` |k ` |k, HNHh %B@,Hp8(p@00px@t @p @` @\ @X @V ph, TRrv|B@l @h @ X @hT @8D @P4 @$ @X @ @ @ @ @@ @ @( pr@ @ @ ` ` %#  `% , -0 | ` %P 3 ` xH ` % 0 <  tx ` % ` @  p ` % F l ` % N0pPp ,  @ p @ l @ \ @ X @ T @8 D @P 4 @h $ @  0@ @  `X% @ v@P @$@ @   `  h @ @$ @ @ X @`X p0@x|0  *h&l  0   &l( PX ` p  g&l   ( 8@&lH px X   &"l( P Xhp             (  0 P X(`   "  &l  (0 @ HP%Xx "   &l %0 8 "@  H X "`  h xHSimple Decision Treeid="1"#http://decisiontree.sourceforge.net܇"Copyright (C) 2008 Thomas SeyllerDThis program is free software: you can redistribute it and/or modify>Dit under the terms of the GNU General Public License as published bycrosofAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.Rece?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .d?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************-FAs a special exception to the terms and conditions of GPL version 3.0,7Thomas Seyller hereby grants you the rights to link the?macros to functions calls that normally comes with the standard@built-in libraries provided by your office application programs.7This macro modified on 2/9/2009 by William VanHoomissen7This macro modified on 5/8/2009 by William VanHoomissen add "Flip" function v1.3DThis program is free software: you can redistribute it and/or modifyDit under the terms of the GNU General Public License as published byAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .Shee?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***l?***************************************************************FAs a special exception to the terms and conditions of GPL version 3.0,C~7Thomas Seyller hereby grants you the rights to link the)?macros to functions calls that normally comes with the standard@built-in libraries provided by your office application programs.7H]$ Simple Decision Tree Toolbar 1.3@.DGlobal variables] 0JExecuted by the Tools menu command and called when this workbook is opened If toolbar exists toggle display]ph , %".D~ H!J D!L D(Lfil  , %"B@0noAN|dANkoCreates the toolbard-Y]]]Delete it if it already exists` , %"B@0@Create the toolbar , !"%2.D:Add the other buttons (see the AddButton procedure, below)+DecNewNode.NewDecNodeCreate a new decision node T!V!X T!Z!XA@Rtio+UncNewNode.NewUncNodeCreate a new uncertainty node T!\!X T!^!XA@RChangeChangeNodeType.Change_Node_TypeDTransforms an uncertainty node into a decision node, and vice versa. T!`!X T!b!XA@RPGrow! Grow.Grow Add a branch to an existing node T!d!X T!f!XA@Ron.Prune!Deletion.Prune!Delete an existing node or branch T!h!X T!j!XA@R&ComplementaryProba.Complementary_ProbaMake this probability equal to 1 minus the sum of the other branch probabilities. If the cell already contains such a formula, using this function will freeze it into the value it contains. T!l!X T!n!XA@R$Controls used to specify the u-curve rl , %"!.%2.  v9t(9u(x) =94'Please specify the form of the u-curve.9x9zqX |l , %"!.%2. }9u(x) =94xC@~1 +/- exp(-gamma*x)C@~Values.U_Curve_Change96q , %"%.!d'B rl , %"!.%2.  v9t(9gamma =949zq8 l , %"!.%2. _9Values.Update_Gamma96q , %"%.!dGSee Spreadsheet , %"%.(dj Add Help button, and sub buttons  , %"!.%2. Help94<95.!2.P#Help PHelp...94 HelpClick969q 5.!2.P#About PAbout...94 AboutClick9619qX qP Adjusts the toolbar D9L9This forces the row breaks 9q o 0Adds a button to the CommandBar]P]p , %"!.!2.  9t 9 9 494 96 $ 9X 9k( $G 9xjq o Adds a button to the CommandBar]0]P , %"!.!2.  v9t(9 494 96 $G 9xjqH o@ p B@o  B@o 7This macro modified on 8/7/2009 by William VanHoomissen add "Shrink" function v1.1 fix "ChangeNodeType" bug v1.2Flip FlipTree.flip=Flips tree to assess posterior and preposterior probabilities T!`!X T!`!XA@RbilitiXShrinkShrink.Shrink_Tree2Removes unused rows from sheet to make tree shrink T!!X T!!XA@RA@RAttribute VB_Name = "General" 'Simple Decisio@n Treehhttp://d4t2.sourceforge.netRCopyright (C) 2008 Thomas Seyller *This program fU software: you can redisit and/or modifyJunder the ter ms of GNU  Public Licen(se Ipshed b% FD"SD Fo-at!, eir hver33), oo(ataPr op)[y laN.xd inchop lh*uwill be useful, WITHOUT ANY WARRANTY; without eveC Azi@=@Zranty1MERCH@ ABILITY3 FITNESS FOR A PARTICULAR PURPOSE. v'E\@nre detPails@Y{s@)ld have!}ceiv(a cZ0alo@%pD*;AG Addial pisCI6PL 3)c 7 "As a spy! exceBT toBMgl/ni2G.0N{ h@ereby zn\tsx!jBs! link DmacDrofuns~ll@]nor mally@meBs:e stardbuilt-@elibrari@vidG@pff app=a"+P=C ? bbf@2/9/`9 Wqi VanHoo2m:en ad@d "Shr" E v1.1; H5/8? ' fix "ChangeNodeType" bug 2 8/7 Flip3 d*iѠ 9nG]s]]0Rp;OWFt]}]]z]]"]e]P?t ]]]]Q?]M]o]ߔ]]Bbr1r[]] \]]] ][1W]a ]ŕOmPriv Mod ulConst APPNAME SЦ0/p1Toolbar 1.3Glo btvgablescu_cur Sub ShowNursery4() 'Exec1 s menommRGdRr?h2workbookWТneq!2tT exдgg#IplaDim ComBar?T !@On ErrPDRes"upNexSet= Av.s(l 0 .Numb0= >0 EtG .V@No  GoTo 0 d0 .De8let"B@, C.#B@w! o\r ) G7$87$Aw"@plementary`Proba_A Make t his p bili@equalAP1 minus@e sum ofothe0@ies. Ic@ell aldy co@"ins@fa ula, usffO wi@freeze itC valuBEӖ9O10OShrXinkFC._T@$ARemovesused Qs from sheet&mb*@d P`y1 Orol$a$IspfyGu-curvDS`&ctl = Ap`plicaBhEars(APPNAHME)@Xnt .|(a:=mso D )With !.Style CCap#A Hwid= 440c "u@(x) ="TooltipTextPleas_eh!]f.)EnablH= TruD"End ! $$&@*boBoxW$125h 1Item "x1 +/-A`p(-ga*x)OnAca0a'V{s.U_CaC_ "u_G?FP(10).4 _*_*A*?'?'?'onSb)?' .(bK'/# /#?b?5:?56Ed\it"q 0. 9C"/.Upd0_>G  cdB p  "" TxhenC2c See Sp_i[ '@, Help bsubsc$KKKPopup_U 6JSubCUS 'S 2RGr,..KYQC[k BFaceId984/ E^ 'About? 0)32O .I 2_ 7V |49O + 3"j(ustt`abar2 !,Nur0serys .V?_@_vA20 'Tdc`0eakD( teTQnarNoC0 omize1 ` Z ` `/cM(", height, T!, onacOsbBp, picmask-A5$4 2@Dim Btp=s C mya" Aoc%qBBaPb.I Andr77+SNot@ IsMis()BQ7 T?aQ!If1. .&&&_no_p (/&_$_$ _$8_$_$l_$^mandBars(APPNAME).Controls.Add  With B tn4D.Style = msoButtonCaptio Dwidl= 40ncLr6OnAcCAonactIf Not IsMissing(tooltip) Then .TText<>End  b  Sub  HelpClic8k() k .Show Abo|ut0  ` ////0 ` //$! `$I `n|^7*t0 `LjcЂ0*҂5D(wn#3ԍk7D `VM+m|x`VM+m|0 `LjcЂMEPSPSSS6"<<<0{1C88D3F5-0BBB-4229-AA9C-B391098B70FA}{84E4A37B-1C95-4EA3-AB97-698D8E59BCC9}`0(%X0 %%T%0 ^0` ei  b` ei L.000hxL $*\Rffff*0K4c1249e948<@DHLPTX\`dhl"   "   0xo0oAttribute VB_Name = "Util" Basl0{1C88D3F5-0BBB-4229-AA9C-B391098B70FA}{84E4A37B-1C95-4EA3-AB97-698D8E5@9BCC9} G lobalSpacoFalse CreatablPredec$laIdTru BExpose0TemplateDerivCustomiz DP Sub CommandButton13_Click() End 4 )cl'%'%'$%'4rU @ c d1dYdc 4 8y.` __SRP_105__SRP_11 +About __SRP_20  <!/ @I/ Dq/ H/ L/ P 0 T10 X- \. `). dQ.rU~|  C1 #Q)!)I)+i+q) P fy0,1, , )100q211 433!544 8556A;; <7a7=9=*Y==9>Q>y>>A?a??;7Q** @9@q@@@AaA9A @ K9\:`%pt$ t dp HQ\x)tp$X tt lXtVx kVx K=\:`%pt$ t dp H\ )tp\  K((xtp\ x K=T:X%hl$ l dh HT )lhTKET'$%'4%'D%:X%hl$ l dh ,QTx)lhhl $  l   T $  T  Q oQho:N:$N:4N(( )lT6hl $  l   T $  T  Q oQho:N:$N:4N(( )lT6hl $  l   T $  T  Q oQho:N:$N:4N(( )lT6hl $  l   T $  T  Q oQho:N:$N:4N(( )lT6hl $  l   T $  T  Q oQho:N:$N:4N(( )lT6hl $  l   T $  T  Q oQho:N:$N:4 N(( )lT6hl $  l   T $  T  Q oQho:!N:$"N:4#N(( )lT6hl $  l   T $  T  Q oQho:$N:$%N:4&N(( )lT6l'%'%'$%'4%D% T:X%hl$ l dh HT  $'Qt)lhT ltX%(( () * ) + )  )cl'%'%'$%'4%D% T:X%hl$ l dh HT  $'Qt)lhT lt} () * ):X,%-:X.%- / )cg(D % T:X%hl$ l dh HT  ,'W0`) lhT 5l'%'%'$%'4%D% T:X%hl$ l dh HT  $'Qt)lhT ltX%(( () 1 )  )cl'%'%'$%'4%D% T:X%hl$ l dh HT  $'Qt)lhT lt|_| () 2| )c|k(D % T:X%hl$ l dh HT  ,'W0:4 ]3) lhT 5b:43%(D % T:X%hl$ l dh HT  ,'0) lhT l'%'%'$%'4%D % T:X%hl$ l dh HT  $'Qt)lhT ltx 4x )<x ()xW5A6)p6 lpt 7t ) 8t )(X%t9ctxW5A6)p6 lpp :p ) ;p )(X1%p9cpcx lxl l l l clx P8 |xtpltpx< lhT Ll'%'%'$%'4%'D%TX:\%lp$ p dl HX T $'l=<x) plXT lx x< \" ()\" )\ )/\ )/l = \>[p <p$\>[p <pl =A\ )/c L0xt$plXT0   H?$@$ HA$Bs$ R h_`Il9kW0   0 0  8hPrU x$`$A`n N^7`#AsSAFbD>>DDoKaM,A4Oԧ;k* @J6x* @J6#AsSAFbD>MEPSPSSS6"<<<0{1F822B70-821F-434D-8545-671930F84730}{9EBFDDFB-D50E-4D33-81BB-C2FD52D70D6A}P @`|J ` % %@%H%6@ dL $*\Rffff*0K4c1254b4 L8<@DPHTX4 "    " (8 B@o`@oPH3Attribute VB_Name = "Abo ut" Basp0{1F822B70-821F-434D-8545-671930F84730}{9EBFDDFB-D50E-4D33-81BB-C2FD52D70D6A} @GlobalSpacoFalse CreatablPredeHclaIdTru BExpose0TemplateDerivCustomizDP Sub CommandButton1_Click()` .HidN End !TextBoxhangerU !0  i)iQiyih4 8 `I <aI@)DHL  P`  TaIXaIAf W 0   0 @  P8P__SRP_21Testing:^`__SRP_2__SRP_3rU d$ `$A `nrU~|  #Q)y F)FQF9C$$$1Ll$ @ll=tll$ (Qlppzlt Ql[X\rT%\A4:D$54' (      !"#$%&'()*+,-/012346789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`acdeghijklmopqrstuvwxyz{|}~Thomas Seyller hereby grants you the rights to link the?macros to functions calls that normally comes with the standard@built-in libraries provided by your office application programs.DVerifies whether there already exists a tree in the active worksheet]@]` . .'  ! !TrNd' $  'yk iDVerifies whether the active cell is admissible to create a new node;_If it is, it returns the number that should be assigned to the new node, otherwise it returns 0]] . . !' !''  ! !Leaf' $   !!  !!  !$'y k i>Extracts the node / leaf number from the name of a node / leaf GNU 'ublic TrNd'g with $     $'dP   $'k0i( ܵAttribute VB_Name = "Testing" 'Simple Decisio@n Treehhttp://d4t2.sourceforge.netRCopyright (C) 2008 Thomas Seyller *This program fU software: you can redisit and/or modifyJunder the ter ms of GNU General Public License Ipshed b% FDSDH Fo-at, eir ver33), o#o(atar op)[y l6aN.xd Dinchoplh*uwill be useful, WITHOUT ANY WARRANTY; withou`t eveCAzi@=@Zranty1AMERCH@ A@BILITY3 FITNESS FOR A PARTICULAR PURPOSE. v'E\@nre detaiTls@Y{s@)l@d have}ceiv(a cZ0alongB@%pD*;G AddipisC6PL 3)c 7  "As a spy exceBT toBMgl-/niG.0N{ hereby zntsx!jBs! link ADmacrofuns~ll@]normall"y@mes:e Dstardb uilt-@eli`brari@v 0=e%eTrvutE If Next  %57@Is_Admlble_!c8L8 $4c`'aVc@;a new1de; it `, returnVe num^bൄa}g>n@RmE Hwi 0_D_D/" Srw0c.Ro"wcolColum  S$h$$LeaFf$$0 AP s.TopLeft    Th=( Extr _p,.H.+) ))rE?E 6@%$od`e / lE%fromrZna`0)W5#!Len(s4 x<,<;;Y Ra(s, l - 5tEF??#U=acN  * (P Jx J H *` F D D  2h H L  F8 F F L >` F F B0 J8 D]p4'$5pzT \sTW:x<$XTt\pl4$Ll$ @ll=tll$ (Qlppa\"i LPL<(<,<0<4<8<<<(+`k  tX% px%+``k, t% p%+`k@ BI  orn) a%@`H0H``z pH@l @`\ @X  @T_  @xD @H4 @$ @ @ @x @xX`x-th@bin8ygn;C:\O@l ;;@p\ 1\@L UT@< @, F@ so@H OF`  1;C@_ syH 2;C@ sy@ ND@ ro@ \M@ ff@ 11@ WS@0 C:@H :\@`t st@d C:@` ilHmmo@@x@X`xs\h@:\OOrC@h ol@X :\@H D_@8 \P@( ar\OrC@ x`L $*\Rffff*0i4c10d3ce*\R1*#2ab*\R1*#1c8*\R0*#f*\R0*#13*\R1*#e4*\R1*#e4*\R1*#e8*\R1*#2acN  * (P Jx J H *` F D D  2h H L  F8 F F L >` F F B0 J8    %'    0 B8 J@ f    ( 8 H P%h@e     B  D  P`'x%% Simple Decision Tree@#http://decisiontree.sourceforge.net"Copyright (C) 2008 Thomas SeyllerDThis program is free software: you can redistribute it and/or modify@Dit under the terms of the GNU General Public License as published byPAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.Rece?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************-FAs a special exception to the terms and conditions of GPL version 3.0,7Lt,p< `l\td hXH 8:hX('( 8((h]pX'58%H(hX"l  `1x5%H(hX"l  `1x5d0xH(XarU $`$`(`a/nrU~|  #Q)y F9CQF)FD L!T l :h NXX pz5X$ $ XHp$ @lp=tp 5pzpzpt Qp[\`rX%`A8:H(58' (H]p8'(5`A8Construction%,mfD__SRP_4>__SRP_5.Help ) 5%   * (P Jx J H *` F D D  2h H L  F8 F F L >` F F B 0 F8   B h    ( 8HPX `%x'     B h h p    %'  0 8 H "  P XX   (5^7BxME( <6 L PL<,<0<4<8<<<8+`` Xk@I +`k  t%+ ` k6 t% ` ` LI ater `  UI  +``0k  _I @NESSI See +`k pI ed aI lic ` ZZI ?** X****% x****%  per%``   %x(`z@@p @` @P\ h( @X_ P @H @8 @( @ @ @ @ P@ph 8`z @ h @X @PH @8 @( @ @ @ @ @( @ @@ @X @ @  ( ` ( @ `z P ( @x h @ X @ H @ 8 @( @8  @  @P @h @ @ @ @ @ @ @ `z @h @X   x ( `z @ `@p @` @P \ h ( @X_ P @ H @ 8 @ ( @ @ @ @ P   L $*\Rffff*0j4c10d3ce*\R1*#2ab$*\Rffff*0l4c10d3ce*\R0*#13*\R1*#e4$*\Rffff*0i4c10d3ce*\R1*#e4*\R1*#e8*\R1*#2ac "  b  p     B  X %0 2UH 3 '           B  X %X 2Up 3 '           "  F( p  x       H   8 &X                  (8H"Px * & 2 .  *P   : XH P &` B     .  rP v |@ r v8 F F <@ X <    F8F  FF@  b  &@h    (8Simple Decision Tree#http://decisiontree.sourceforge.net@"Copyright (C) 2008 Thomas SeyllerDThis program is free software: you can redistribute it and/or modifyDit under the terms of the GNU General Public License as published byAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.%?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of =MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the?,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***T?***************************************************************ntFAs a special exception to the terms and conditions of GPL version 3.0,T7Thomas Seyller hereby grants you the rights to link the?macros to functions calls that normally comes with the standard22@built-in libraries provided by your office application programs.?Finds and returns a branch given its number, or -1 if not foundBranch $VERSION 5.00 Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} Help Caption = "Help" ClientHeight = 5400 ClientLeft = 45 ClientTop = 330 ClientWidth = 8685 StartUpPosition = 1 'CenterOwner TypeInfoVer = 74 End ThisWorkbookThisWorkbookSheet1Sheet1GeneralGeneralUtilUtilAboutAboutTestingTestingConstructionConstructionHelpHelp'i``bReturns the number of stages of distinctions present in the tree; returns -1 if no tree is present] .Sh !S'Shezk'  !]" !Leaf'or $   ! 'U   G 'jk  ibReturns the number of stages of distinctions present in the tree; returns -1 if no tree is present] .hart" !" 'ChartszXkP'  !s").Te !TrNd' $   ! '   G 'jk i RRepositions a specified node, given its node number, and all of its ancestor nodes A G|j   $Ao\Calculates the u-value at a specified node, given its node number, and at all ancestor nodes A A G|j   $Ao0QChecks whether a specific shape s is a node and is a child of node number node_nb !TrNd' $   !   !TrNd ' $  'd8'k(d 'ki`QChecks whether a specific shape s is a leaf and is a child of node number node_nb !Leaf' $   !   !Leaf ' $  'd'kd'ki?Reposition a node and the branch leading to it given its number]@ .]`] $ %.'''AFind the highest and lowest branches that are rooted in this node  ! !Branch '  !   !!' ' ' 'd@   'd    'kkkk   !!'d     $ 'k !!' $If new_node_row <> old_node_row ThenCall Delete_Tree_Value(node_nb),Need to readjust the position of the node...(node.Top = ws.Cells(new_node_row, 1).Top#... and of the branch leading to it !!'   ' 3Set branch = ws.Shapes(Find_Shape("Root", node_nb)) Qbranch.Top = ws.Cells(new_node_row, 1).Top + ws.Cells(new_node_row, 1).height / 2d  ' auxcol = node.TopLeftCell.Column ;If ws.Cells(old_node_row - 1, auxcol - 2).Formula = "" Then  row_adjust = 2 Else  row_adjust = 0 End If (old_node_row = old_node_row - row_adjust lws.Cells(new_node_row - 1, auxcol - 3).Formula = ws.Cells(old_node_row - row_adjust - 1, auxcol - 3).Formula pws.Cells(new_node_row - 1, auxcol - 3).Font.Bold = ws.Cells(old_node_row - row_adjust - 1, auxcol - 3).Font.Bold vws.Cells(new_node_row - 1, auxcol - 3).NumberFormat = ws.Cells(old_node_row - row_adjust - 1, auxcol - 3).NumberFormat lws.Cells(new_node_row - 1, auxcol - 2).Formula = ws.Cells(old_node_row - row_adjust - 1, auxcol - 2).Formula pws.Cells(new_node_row - 1, auxcol - 2).Font.Bold = ws.Cells(old_node_row - row_adjust - 1, auxcol - 2).Font.Bold @ws.Cells(old_node_row - row_adjust - 1, auxcol - 3).Formula = "" @ws.Cells(old_node_row - row_adjust - 1, auxcol - 2).Formula = "" 5Set branch = ws.Shapes(Find_Shape("Branch", node_nb)) Qbranch.Top = ws.Cells(new_node_row, 1).Top + ws.Cells(new_node_row, 1).height / 2 6Set branch = ws.Shapes(Find_Shape("FBranch", node_nb)) Call New_FBranch(branch.Left, branch.Left + branch.width, ws.Shapes(Ancestor("TrNd", node_nb)).Top + ws.Shapes(Ancestor("TrNd", node_nb)).height / 2, ws.Cells(new_node_row, 1).Top + ws.Cells(new_node_row, 1).height / 2, node_nb)k         %   % %B@    %   % %B@0 d       %   % %B@    %   % %B@0 k`\Need to readjust the starting point of all front arcs of the branches starting from the node  ! !FBranch '  !   ! ! ! ! ! Branch ! ! $$ %! ! ! $Ak End IfojAttribute VB_Name = "Constructio n" 'Simple DecisX Treehhttp://d4t2.sourceforg e.netRCopyright (C) 2008 Thomas Seyller *This program  fU software: you can re diit and/or mo0difyJunder the terms of GNU General Public LicePnse Ips`hed b% FEDSD Fo-a!, eir hver33), oo(ataPr op)[y laN.xd inchop lh*uwill be useful, WITHOUT ANY WARRANTY; without eveC Azi@=@Zranty1MERCH@ ABILITY3 FITNESS FOR A PARTICULAR PURPOSE. v'E\@nre detPails@Y{s@)ld have!}ceiv(a cZ0alo@%pD*;G AddirpisC6P2L 3) 7 "As 0a spy exceBT toBMg[l/niG.0N{ hereby zntsx !jBs! link Dmacro(funs~ll@]normalDly@mes:e stard@built-@elibrari@xvidG@pfBf app=a/0PF F ind_Bcch( nch_nb) `'IntegM'a`)ndUturn*c gWn i` numberA -1 iP fH Shape("", 'E mMax_Stage( Rea2k)g@&@!i0presentE;E gDim ws%Work`"eDSet= A=veShe%9tTesting.Ex s_ "alThen -1 t '$Aa&IfC-0CF Each s In*.0sp In@Str(s., "Leaf") IsNumeric(p/5p > 0al`_B/ Len ) - 5' 9> != GNext y Q?$FW2O$O$f!9O$~O$O$O$ O$O$t6O$f O$FO$_$Af2po$o$#o$"TrNd}o$uo$o$Pk$41)!@) {$ G$!UHSub Repos"o_Nodes(nPaT 'QSmhf1!,S  ;5TP_ `AKUancB0;AR-qCaR]=:> C CA Le$ft, z- 1)@6 Zb_Values@_w OX 'cup-v1 {fТU_U#  _Measure\p%`Zl"ub&L Is_ChiDld&(s, de"{Boo`-c@'CheckheprՐ shw_amp'Q $)==aaAbQeF)<+ 6?pï " &U io$EiiA kTruԽExWAjbV'CEjFxOOOHOO"Obj"Od O4O/O3OQ qsNumeric(pp) And pp > 0 Then Is_Child_Leaf = TrueElsl ^Fa DE P﯀a=hOs+<( T*aY'oŇaimNext >sc $(klonew_St 6AO&Round(0H+ ("- K) / 2io &' J<> F'Call Delete_Tree_Valuc%1'Ne r9juae ofe€... 0 A@6(Len)9 + A ThenC6N@L, s.s.width, .Top.he / 25(Find_ ("/", R[A ',%9)@8)))^ /rz%T' ASub ((H58kzDH]t Upz `sXZ<$\Xt`p8(Hp$ @lp=tp 5pzpzpt Qp[\`rX%`A8:H(58' (H]p8'(5`A8((H58kzDH]t Upz `sXZ<$\Xt`p8(0   0   T%l AH:X8(5HU( X((h]pH'8l A(/'6X3l A8:X H6H8' X(h]pH'85Xpzpzpz ,(,H8T%l AH:X8(5HU( X((h]pH'8l A(/'6X3l A8:X H6H8' X(h]pH'85Xpzpzpz ,(,H80   HrU (`q/$`$`(`/(!`/,I`a//,q`a//(`/n0_e ^73θ0Czѩ"<<0{182EA435-A2CC-40E5-8D3F-5C7CA4F3B3D7}{B0201722-BD54-464F-A9D6-52B336912ED4}  `x|k8ph@%p %%% h` e<i h` e@ h8i n` eDi h h@pH8HL $*\Rffff*0J4c12548d+48<@DHLPTX\`dhlptx|     !"    " ( 0 " @ H " P Xh B@o`Xoho0o 6Attribute VB_Name = "Help" Basl0{182EA435-A2CC-40E5-8D3F-5C7CA4F3B3D7}{B0201722-BD54-464F-A9D6-52B3369@12ED4} G lobalSpacoFalse CreatablPredec$laIdTru BExpose0TemplateDerivCustomiz DP Sub CommandButton1_Click() 0 .HidM End' Fr13 9Label20rU $`8$A`<$`@$`Dn)9rU $`$`(__SRP_e__SRP_f&bNewNodev__SRP_1e)ah   aIyh!!!) WH$$ 0   0 h  0   HL@X \))`aIAd)Y5*\R0*#f$*\Rffff*1;4c10e0d4$*\Rffff*0l4c124e17*\R1*#2*\R1*#a*\R0*#13*\R3*#1f*\R1*#3f$*\Rffff*0k4c124e17*\R1*#268*\R1*#e4$*\Rffff*0l4c10d3ce*\R0*#14$*\Rffff*0m4c124e17*\R0*#1$*\Rffff*0i4c10d3ce*\R1*#e4*\R1*#e8*\R1*#2ac  * (P Jx J H *` F D D  2h H L  F8 F F L >` F F " 0 8 P "X ` x "  4 ]^7xME`@ ( (>  LL L   PL?Th@., bute`0$t wi 2P  % <` \k(I H A PI  xblic% \h`` $kIt nseI m. I org/ x@?**% vp`****% x`XXkUUI * x****% p****% |(` H**It h7ThI ou tI ?maI~  norI d ries% v lica%+` hZZ.I  node% % %@h(. H %  ive cell if yi@l in t@\ h0 8  ( @4 @P 8,(<@8 @h @ @ @ @p @ @: >BLR@Z\^@H| @8 l P  :@\ ` 8 :( 8 <@ L @ < @ , @  @ @ @P `%p  D@ h `%P Jd@ (hH@ p h 0 P P @ t @ d @` @ P @ @ @ 0 @ @(  @ @l @n @pX @ @ @ @ @ @ p @` \H `%0 (H`0x@t @H` @P @x@ @0 @ @ @ @ @ @  @8 @P @h @ @ @ @x @(h @X @H @D @@4 @$  pPhX(( @t @@` @hP @@ @0 @ @ @  @x_ @@  @P @ @ @8 C@ @ @ @x @ h %@8X @@zH @8 @v( @ @ We@ #@ #@ p[@0 @` @H @x cu@ @ @ %@p &@` &0(@@P X+@@ h@+@-@< x1@8_ 1@( U{@ @ @( @@ @X @p @ @ @ @ @x @h @X 6x x@(l %\ (  L $*\Rffff*0j4c124e17*\R1*#2ab*\R1*#1c8*\R1*#267*\R0*#1    ( 8 H P  H`  9  J 8 H9Ph xpD.Php  x  (   $ &B @ $P   h  p      0        8  0 @ 8H ;h ; ; ;  2^  "8  >P  p x  2^  "  <      (  8  H `  h  x      ,; ,4    0 @ " H 6P    8q 2  H (VHp  "  R   (  0,W@ZpZZ0Z-LLh  "  R ,( X `p3x  P R $@  h p H 3&C ( 8 Ph p1"3    ,X0@ RX  R 0@1HX Lp   bP 3h &C6 H P`  h-x  "   V J NX   ,  Z  Z Z Z@ N N NH N  L LX L LH LP L  0 Pp  B    8  @ P X `    H   !& ! H! X!h!p!x! ! !!! !!!! !! ! !""""@"H" *X" &" 2" ." *#H# X# h# :x# X#$ $ &($ BP$ $ $ $ $ .$ r% v% |& r& v' Fx' F' <( XH( <( () ) )F*FH* ** *F*F+ P+`+ bh++ + &,0, , , , ,-Simple Decision Tree "Sett#http://decisiontree.sourceforge.net & " W"Copyright (C) 2008 Thomas SeyllerDThis program is free software: you can redistribute it and/or modifyDit under the terms of the GNU General Public License as published byAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************-FAs a special exception to the terms and conditions of GPL version 3.0,7Thomas Seyller hereby grants you the rights to link the?macros to functions calls that normally comes with the standard@built-in libraries provided by your office application programs. AlternativeA o@OutcomeA o.Creates a new node located in the current cell]]]0]Ph]]'4 . . !' ', !'AChange active cell if trying to create a node in the first column '',  $B@6kDChange active cell if trying to create a node in the first four rows '  $B@6krError message if there already exists a tree on this worksheet and the active cell is not admissible to add a node ! !<You can only create a node at the end of an existing branch.'( ( 8 ,A@(|k': ! G !':j!If the new node is in fact a root :  A<If the new node is not a rootdLeaf : >%@ %.2 2!.*  *! '4 *! ' : BBDk` : BBFkH   %. !'. !'0 4 H L  %JB@ Hk\(\?  %J(N  %J(N  %J(N  %J(N  %J(N & Alternative R . 0)@)@ !%PTrNd :9$@5T!V(@9Xqdx Z . 0)@)@ !%PTrNd :9$@5T!V(@9Xqk :  ,A\  ' :   ^B`d 4  , ^Bbdh   ^BbkHk@    :1 & dBf    :2 & dBf dBh : ^Bjo0Draws a tree root at the specified starting cell]h .   %!   %! 'l   %!'n'p p   %! G   %!'pj n l n p l !%rRoot 9qxopLInserts necessary rows when a new node is added, in the area limited to thatparticular new node]( .]H t t t $$ %.v   v!! %   % %B@   v!! %   % %B@   v!! %   % %B@   v!! %   % %B@ t t $Axd    %   % %B@    %   % %B@k@o8hKInserts necessary rows when a new node is added, in the area limited to the%ancestors of that particular new node] .] $ %.JFirst we need to determine how many rows above and below that node and itsLbranch we need to add; the only thing we know at the moment is that there isa total of 4 rows to be added''AFind the highest and lowest branches that are rooted in this node  ! !Branch '  !   !!'   G 'j   G 'jk  !!'      $ '     'zd 'zk    $$ %.v v!!'  z    %   % %B@   z    %   % %B@ d !!'  z    %   % %B@ k( z\Need to readjust the starting point of all front arcs of the branches starting from the node  ! !FBranch '  !   ! ! ! ! ! Branch ! ! $$ %! ! ! $Ak k    $Axk`oXPInserts rows in the tree following the addition of a new node or of a new branchDrw is the row of the former leaf where the node was originally addedHcol is the column of the former leaf where the node was originally added] .] t ~ t t $$ %.v    v!! %   % %B@   v!! %   % %B@   v!! %   % %B@   v!! %   % %B@dX   v!! %   % %B@   v!! %   % %B@   v!! %   % %B@   v!! %   % %B@kd t    %   % %B@    %   % %B@    %   % %B@    %   % %B@d    %   % %B@    %   % %B@kk t t t $': :$ %!!' :$ %!!' :   A\kpoh(Returns the number of rows that need to be inserted above a specific branch given its number and given that four rows need to be inserted somehow] .]] $ %.'''AFind the highest and lowest branches that are rooted in this node  ! !Branch '  !   !!' ' ' 'dx   'dX   'k8k0k(k    !!'d     $ 'k !!' $If new_node_row <> old_node_row ThenCall Delete_Tree_Value(node_nb),Need to readjust the position of the node...(node.Top = ws.Cells(new_node_row, 1).Top#... and of the branch leading to it !!'   ' 3Set branch = ws.Shapes(Find_Shape("Root", node_nb)) Qbranch.Top = ws.Cells(new_node_row, 1).Top + ws.Cells(new_node_row, 1).height / 2d  ' auxcol = node.TopLeftCell.Column ;If ws.Cells(old_node_row - 1, auxcol - 2).Formula = "" Then  row_adjust = 2 Else  row_adjust = 0 End If (old_node_row = old_node_row - row_adjust lws.Cells(new_node_row - 1, auxcol - 3).Formula = ws.Cells(old_node_row - row_adjust - 1, auxcol - 3).Formula pws.Cells(new_node_row - 1, auxcol - 3).Font.Bold = ws.Cells(old_node_row - row_adjust - 1, auxcol - 3).Font.Bold vws.Cells(new_node_row - 1, auxcol - 3).NumberFormat = ws.Cells(old_node_row - row_adjust - 1, auxcol - 3).NumberFormat lws.Cells(new_node_row - 1, auxcol - 2).Formula = ws.Cells(old_node_row - row_adjust - 1, auxcol - 2).Formula pws.Cells(new_node_row - 1, auxcol - 2).Font.Bold = ws.Cells(old_node_row - row_adjust - 1, auxcol - 2).Font.Bold @ws.Cells(old_node_row - row_adjust - 1, auxcol - 3).Formula = "" @ws.Cells(old_node_row - row_adjust - 1, auxcol - 2).Formula = "" 5Set branch = ws.Shapes(Find_Shape("Branch", node_nb)) Qbranch.Top = ws.Cells(new_node_row, 1).Top + ws.Cells(new_node_row, 1).height / 2 6Set branch = ws.Shapes(Find_Shape("FBranch", node_nb)) Call New_FBranch(branch.Left, branch.Left + branch.width, ws.Shapes(Ancestor("TrNd", node_nb)).Top + ws.Shapes(Ancestor("TrNd", node_nb)).height / 2, ws.Cells(new_node_row, 1).Top + ws.Cells(new_node_row, 1).height / 2, node_nb)k(         %   % %B@    %   % %B@0 dX       %   % %B@    %   % %B@0 k\Need to readjust the starting point of all front arcs of the branches starting from the node  ! !FBranch '  !   ! ! ! ! ! Branch ! ! $$ %! ! ! $Ak0 End Ifi_Attribute VB_Name = "NewNode" 'Simple Decisio@n Treehhttp://d4t2.sourceforge.netRCopyright (C) 2008 Thomas Seyller *This program fU software: you can redisit and/or modifyJunder the ter ms of GNU General Public License Ipshed b% FDSDH Fo-at, eir ver33), o#o(atar op)[y l6aN.xd Dinchoplh*uwill be useful, WITHOUT ANY WARRANTY; withou`t eveCAzi@=@Zranty1AMERCH@ A@BILITY3 FITNESS FOR A PARTICULAR PURPOSE. v'E\@nre detaiTls@Y{s@)l@d have}ceiv(a cZ0alongB@%pD*;G AddipisC6PL 3)c 7  "As a spy exceBT toBMgl-/niG.0N{ hereby zntsx!jBs! link ADmacrofuns~ll@]normall"y@mes:e Dstardb uilt-@eli`brari@v 'P1P7H vpWfrooD`""rUDrawR_R?&/6T+uEl^sCAAF=@C. Fs(USearAnc or("Leaf",^)V!e`P='c.TopLeftA!c  >>RF + 5N±= Fa  JK#ele k.De_Ext'TCc(h( YCoQ GWw\s.qJ xP(c.Qy!S`0ThRFPCcwTo HQ bWs().IEprxlSeToRhNexZ>uk 3dWidth.71 {p1)T 3@s+ 24Z374 @X *W '3.p3(msoRecgle, A~, 12.\75d.TrNd " &Y6WC aF.`eor.RGB aP(153A255 LockAtRS 41! +BOvaO__C_nb_l!_GB(08, 0Ba2Bs00Uws<4ode_nb, rw, old_col) rw = + 2@If new_n"" 0Then:pCall Values.Initialize_Measures(0Else;]ed_to_shiftrighthFa* k oSpl it j - 5?4 v #Xndh If[E}B ranch~Drxaw_zE2,& "1", _TypeU'ю'2'Lengtn(es4ApTree_(}' >Sub  B; PRooty'As a t r at  specified starting` cellAAYDim ws As WorksheDetC(Set= ActiveSCyws.C.Tophe/Ex(Lef l+= 7>@% z1).width= ?WiC ShapAddLine(&, 9, *-EP.NameC"d "C+n8Public a9Insert_Rows(cu`rrentE~!X,* a'sYce`ssary; 6wJ=F  i?dded, in?area liHmit`?to`a *'p@cularcb!AjAG qestor!I) 6 <> .M ==#3(Find_N(C%kl)=)4=Range(VA<, AX A.C olumn1), O 46))9 (xlSapDown? ? ?H?'u#-- 1R@C-"?n?-bk_Re PsG%pGdy#A^A ,Ee_"_"),+(' GQtd_HQHx@GGp9GG0's ofI HpHtaiUk!PmdH1bOEAE B'Firs 0pepRTdetermb how manXabove@Dd bel,thwapitI4'bB wadd;`e onlyyknP{momab }re4 otal4^b`C3Smax__"r= 0tin{65535 Ah{0^2yesP ofghsFor Each s \InW]psI@nStr(st, "s " &"j0e!1 A _c)`8IAϬ js^`0Wo >Q =k<} E= Next &q# AfRound(Q| + (L#-) W<хT1nbA(s_3=-Be C,Yc@ rnb?`QAh#]?(ل, %0X)9!`=`2 1i`1 To z 7qOg`/J{{O +`/+b%i 4h q 2 &s O  "%@^oow)o+!a!zɵs(old_node_row - 1, col)).Insert (xlShiftDown)  Next i 0 Then>|'Need to readjust the starting point of all froa arcs'branches0#mBfFor Each s In ws.Sh0apes p =Str(s.Name, "FB0 " & nb|rp kA|Len)%9 +  }CmNew_6 Left, s."s.width,A.Top *.heigh@t / 2,j( Find_p("a_", RN,Kr)8)+^ Kz2TC Anb""LCBAÙ_Rows_Recursive(AA(Q..1)dKASub kPublic @ OLD_#(@#rent@nb, rw, is_leaf, for_g%@$'s s in¤tree 0llowAad@dition¸ newx  'rwmer  whereH warigin@y edum";DimO As WorksheDetSet= Act8S'A west &b"V# F.$GAm.HA =@}cNPCJ.:uDLdL\%<`|False@Range(Cells(}7+ty[A.Col1+ 1)y6+ 6.crn@Bxa(CE@A#W AO@, ? 1  |'_o/_p._olaYu?656yfJJ+ao A6- 4@ ?G >/-j2 41E/O 9>   | ,/  t 赉(''k8oOpbCpMauu8P?`;(OOICrw}(`AA<, z tPFunINbTouA Q͕)IntegerPReturnsӘumb0Ҡthats  Thens 5=5=#?`  ;'Call Delete_Tree_Value(@nbD"Ag'Need to readju@the position of BK..0 BORws.APs( (0, 1)W ..8. a?C ling itG right_coljColumȓ#A;nb"",?l< ' - 1Set$a Shapes(Find_b("R@oot", _ )H)"!#7# + 7'heF'z4aux)?bAMjL%,  -Y.Formula .' `_$K= 2,Oo^0mg'=yKc- gl 0w13)#$ _owQnt.BINumber FO brN(T uQ,`.Zw`idth,[aAncestor("TrNd wuopoc3j'ݕ=/| p@ iH1 To~ &,[CRange(D0*{Wl)1P{)).Insert (xlShiftDownx](*SÕUpi}- ls?Kտ + R1Loastartpointafr@Y arcsc季=es 0m!Each s In7@p2InStr(s.Name, "Ep " &K8p@ > 0 A Len)9'/%RLsK, s@s.KIGJYTRq 0- 8)090, _)>PmI%' Funcq @X `@(P"l  *  +D%tx t(t6(=@/A5@(PHh&h(`@%(P%tx th(%(%x %x )t6 ~v((`H@h`X(`@%(P%tx tX(%(%x %x )t6 @ ~`B1pa@ltta"i`t6@(PHh@h(`@%(P%tx th(% @x %x )t6 ~@?H(`]@tx Qt[<r83A-:`1 P@6@C(`]p@A-(  P/'6=xA@A(pa~pa{=-A-(`(" 2 :P3N 4D%tx ta~=-A-(" 2 *jX**붫jh@x 5)t6"@xhX s8 P:`]@- `@(P"l  *  ,5$h <8p`P@ Hxp0x(Xhlt@(xhX60   0 (  H5":`F%,n6>^ a T ,)5i%,c^ %,*j%o$jL%)@j,%)@j %t 5":`F%,n6<^ a T ,)__SRP_1f'fNodeSearch0__SRP_8n__SRP_94L`/,`//0!` ///(I`/<q`)/////(`/n@)%\,nc\C rU~|  #Q)yy$)F!L $*\Rffff*0l4c10d3ce*\R1*#2ab*\R1*#e4*\R1*#e8*\R0*#f*\R1*#267*\R1*#268*\R1*#e4*\R1*#e4*\R1*#e8*\R1*#2ac*\R1*#1c8*\R0*#13*\R1*#e8*\R1*#e42z  * (P Jx J H *`rU~| 6A#Q)y$$B1B1 $59CaCCCC DADDEDD!qD"E"IFF G1GI FK$ PK1L!"0  P:lN\\ 5\ $ \  c$ @l=t$ (QddAP PUp>dA@P(]3 (Pp>9@ @P @$ X5@(]M (@9@ @P @$ X5 ^ j Cx.'': N0xM@ 6 :^ ^ i:]3 P@ sB:N D%t  6 al`5$P`a"i]t5g f`a"iP5    0@ @P @t dNdA,dABt$5 ((|(h\(8%P @t 5 |~\8\(\?%P @t C5;(%P(%t C6;(%P(%t C6;(%P(%t C6;(%P(%t C6 :]3<^%,*j%o$jL%)@j,%)@j %t 5":`F%,n6>^ a T ,)5i%,c^ %,*j%o$jL%)@j,%)@j %t 5":`F%,n6<^ a T ,)5i%,c>M@@  @(@:]3] P@ f]3k>D@ !5 P@ !;'l :"@(P@ #64'l :$@(P@ #6 %  & `Hl\x@t` Pd|,$(t$ @lt=xtq tx tdA `x `PA0'(@ )t`6dP02 tx tdAPt5d (@F (@d%tx tPA0(tt6P0P> (@d%tx tPA0(t5PV*j@%*j%d*j%*jp%tx tP\t5P:@)%\,nc\C 8 \x,t`dP0 @t$ @lt=xt P:`]@W `@(P0"l  *  +D%tx tpt6 P(`@%pa0ltta "i%x X(%(%x H4%DHXx D)tD60 @XHP(`@%pa0ltta "i%x X(%(%x H4%DHXx D)tD60 @XHP(`@%pa0ltta "i%x X(%(%x H4%DHXx D)tD6 0 XHP(`@%pa0ltta "i%x X(%(%x H4%DHXx D)tD6 0 XH- `@(P0"l  *  ,5 8P(`@%(0%tx t( %x x%x )t6P(`@%(0%tx t( %x x%x )t61X@,xp8 tD@0 XHt$ @lt=xt3l +D`%tx t@pt5@ (`0` tx Qt[ rM3A-:`. P@6@C(`]/@A-( P/'6@=@/Ax5@  xt* x 0xg@ x0 s1pa@ltta"i`ht6@3 0 @(` 0 X5 hXgXh@H (`H P:`] F D D  2h H L  F8 F F L >` F F    >0  Jp J H *X F D D 2` H L  F0 Fx F L >X F F B ( (\(^7?(xME< > LLLPLLL<h+``Xk@2I8 +@`(k 9I modiI +` k DI @eithI  or txn) a%+ ` kXI  I % t%+`k`kI I  t% `>%`0H`z@p @` @P @`@ `@x0 @( @ @ @ @ @@ @ @X @p @  @8pP`z`8 @@h @X XXp`@zX@h @X @H @8 @ @( (  `8 @  @ X `z @@ p @` @ P @p @ @ 0 @ @  (@  @P @h @ @ `@ @ @ @ @ @ @ t @( d @X T @@ D @p 4 @$ @  @  H 0  X H  P X p `z X h @ p @` @ P @@ @ 0 @8 @` @x P @ Px @ @ @ @ @ @x @ @ @ @t @d @T @D @4 @ $ @ @8 @ x   D0 x  B  H      0 0 8 B @ RH      1  ^ _ _( FiH        B  R   (  8 1H  ^h _ _ Fi      ( 8 B @ jH    1(i  ( 08 @ P`Simple Decision Tree#http://decisiontree.sourceforge.net"Copyright (C) 2008 Thomas SeyllerDThis program is free software: you g R KQltоBMо6(rk   jV^lw}]f=17edfrOW>edf can redistribute it and/or modify&Dit under the terms of the GNU General Public License as published by%Athe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.oAYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************-FAs a special exception to the terms and conditions of GPL version 3.0,7Thomas Seyller hereby grants you the rights to link the?macros to functions calls that normally comes with the standard@built-in libraries provided by your office application programs.7This macro modified on 2/6/2009 by William VanHoomissenDThis program is free software: you can redistribute it and/or modify@Dit under the terms of the GNU General Public License as published byAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.{AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************FAs a special exception to the terms and conditions of GPL version 3.0,7Thomas Seyller hereby grants you the rights to link the?macros to functions calls that normally comes with the standard@built-in libraries provided by your office application programs.=Finds and returns a node given its number, or -1 if not foundTrNd $'ih`AReturns the node number of the ancestor of a shape (node or leaf) '@d   $$'@kiLReturns the node shape number of the node that is located near cell(rw, col)]` .'  !!  %!TrNd'  %!!'  %!!' $          'z`kX i@LReturns the node shape number of the leaf that is located near cell(rw, col)] .'  !!  %!Leaf'  %!!'  %!!' $          'zk i dFinds and returns a shape (node, branch or leaf) given its shape type and number, or -1 if not found] .'  !!  %!    'zk iöAttribute VB_Name = "NodeSearch" 'Simple Decision Treehhttp://d4t2.sourceforg e.netRCopyright (C) 2008 Thomas Seyller *This program  fU software: you can redisit and/or mo0difyJunder the terms of GNU General Public LicePnse Ips`hed b% FEDSD Fo-aBt, eir ver33), oo(atar op)[y laN.!xd inchoplh*uwill be use0ful, WITHOUT ANY WARRANTY; without eveCAzi@=@Zran ty1MERCH@ ABILITY3 FITNESS FOR A PARTICULAR PURPOSE. v'E\@nre details@Y{s@)ld havBe}ceiv(a< cZ0alxongB@%pD*;G AddipisC6PL 3)c x 7 "As a spy exceBT tooBMgl/niG.0N{ he reby znt.sx!jBs! li nk Dmacrofuns~ ll@]normally@mes!:e stardbuilt-@elibrari@vidG@ pff app=a"+P=C  bbf@2/6J/`9 Wqi VanHoom:ena e i~SDA# tؤJ?O?O *B?W?O?O?O?O?O"@?Oo?O~?O?OrTraM?O?OPN?O?O?O ?OaI?ORa=O FW Find_(nA_nb) pInteg'cndyturnqd gzn i_@number -1 i2w 0@nF`Shape("TrNd",0zdeE  Ancestor(s!_type} Re h2 aq 1 R!leaf)$SLend= 0p_ P-1SEls46&(Leftf, K- 1)d9If??_By_Row_Col(rw, ul[.b ts loc d n cel Q@Dim wsa$W(orkeSe"t= A`ve8She olDZiP1 To.$s.C d1pInStr(ws$(i)r., s'dsrwTopC. c3um؀`#IsNumeric(Fp-p >#A(- rw) ^ 2 + c -<=`Thig Exit 4!b$Next y` 7BLP1O%O%|7O%e 6@SO%O%O%O%t IO%Nr To_Dele@=JF$|pe$$$"$y'$0sr$'$ $$)m ^ 2 + (src - co$l)<=Th en Find_Leaf_By_Row_C@ol = i JExit FunctioEnd IfTNextl + PuPblic> rS@hape(s_@type,  nb) As Integer '-s aireturn * (nod7branc@h or l) given its.number,-1 if not f@ound aD im ws?Worksheet Set = A8veS f-1+FIi 1 To.ys.C'8+If (i).NameP & "&g_nb /ny1GaCQF9CT l :hNXX pz5X$ $ X\hX(H]3#pzU0hX(H8"l(  ( pz5( T\$ X8(xp$ @lp=tppz1( `pt paPv"i0p5Ph^` @pt pPan`#i0/)p6P_` @pt pPal a"i0)p6P_` @pt pPal a"i0)p6Pi 0(@]pP' (΄td(TD4($]I'604 `Upz `~V x@(`t@ pPdD4p$ @lp=tp (P`1(@pt pa0v"i p50h^@ @pt p0an`# i /)p60_@ @pt p0al a"i )p60_@ @pt p0al a"i )p60i  (P]p0' (tdT(D4$(]I'6 $ @Upz @~Z D,@t`@ p0tT4$<p$ @lp=tppz1( `pt paPv"i0p5Phi` @pt pPan`F] :03)p6 P `Upz `~V 4`t,pPWrU (`/,`Ii//,`//,`//,!`Ii//nrU (`/(`/(`/(Valuese__SRP_19 K__SRP_18BranchesW.*\R1*#1c8*\R1*#267$*\Rffff*0j4c10d3ce*\R3*#1f*\R1*#268$*\Rffff*0l4c10d3ce*\R0*#f*\R0*#f*\R0*#13*\R3*#4f*\R3*#4e*\R3*#4d*\R3*#8c*\R1*#d7$*\Rffff*0m4c124e17*\R1*#1c8*\R1*#e4*\R1*#e4*\R1*#e8*\R1*#2ace  * (P Jx J H *` F D D  2h H L  F8 F F L >` F F "  0 V8   L.^ .^@.^Hx  "  !R^7xME @ ((<> v 7 1 0( (C@  h p  x  9  $   n h       5   l(    ( 8H5`x >v71`  "A  "  B ` hx H a( 8H aPp H <9    0 8 "Hh "p "B 54(@ P ` p x "  Z     "  t   -  "  J &H p x "J H   "N H0P ` p 3, B B  "  : X `  ap  a B  <EH        (">0/X<p     "  $   %0'H ` =p   "  8 &    >0"JPx   >"J    0"J8 `p   "N    3,8 X " ` h   %' $A ( " 0 P8   eY       " ( 80 Xh  Simple Decision Tree#http://decisiontree.sourceforge.net"Copyright (C) 2008 Thomas SeyllerDThis program is free software: you can redistribute it and/or modifyDit under the terms of the GNU General Public License as published byAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .?*************************************************************** ?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************FAs a special exception to the terms and conditions of GPL version 3.0,7Thomas Seyller hereby grants you the rights to link the?macros to functions calls that normally comes with the standard@built-in libraries provided by your office application programs.PDeletes the u-value and value measure of a specified node, given its node number]` .@] $ %!. ! ! %(  ! ! %(d ! ! %(koxcDeletes the u-values and value measures of the ancestors of a specified node, given its node number G|j   $A   $AoLCalculates the u-value and the CE at a specified node, given its node number@]` .]]] $'  %!. ! ' ! '  %! Z"If the node is an uncertainty node=''gLook at all shapes and check whether they are descendant leaves or descendant nodes of the current node  !  $ G +'j !.* *! ' *! '   %.* *! ' *! '   %.  %* *%''d  $ G +'j !.* *!' *! '   %.*Branch ! ! $$ %. !! ' !!'   %.  %* *%''kk     %(dHIf the node is a decision node=MAX(''gLook at all shapes and check whether they are descendant leaves or descendant nodes of the current node  !  $ G ,'j !.* *! ' *! '   %.*  *%''=IF(   %%= *%,"$>$>$>$"$,"$"$)   %(d  $ G ,'j !.* *!' *! '   %.*  *%''Branch ! ! $$ %. !! ' !!'=IF(   %%= *%,"$>$>$>$"$,"$"$)   %(k@k8  )   %(ko<Calculates the CE at a specified node, given its node number ]P .%]p]] $'  %!. ! '% ! ' , %"%.!d' G|j x%=_' d , %"%.!d' $@=IF(gamma=0,_,if(gamma>0,-1/(gamma)*LN(1-_),-1/(gamma)*LN(_-1)))' See SpreadsheetG gamma $'jd, id o th=_'%and  icul=-1/ *LN(1-_)'d =-1/ *LN(_-1)'kh k` kX kP   %%'elow t  its  'e  'hek    %en _ $9General95( be ad5('q o SCalculates the u-value and value measure at a specified node, given its node number! A  Ao @nCalculates the u-value and value measure at a specified node, given its node number, and at all ancestor nodes'  A  A ' G|j   $Aj'zo DCalled when the user creates a node that is not the root of the tree  Updates the value measure column]  .    %   %!9General95(5( q    %   %!9General95(5( qx   A %   A    %(   %(o@4Calculates a u-value positioned at one of the leaves ] .! , %"%.!d' G|j x=_'!d0 , %"%.!d' $:=IF(gamma=0,_,if(gamma>0,1-EXP(-gamma*_),1+EXP(-gamma*_)))' See SpreadsheetG gamma $'j dp `=_'dH  n th=1-EXP(- *_)'d=1+EXP(- *_)'kkkk   %%'   %n _ $9General95(dded5( .q@o8Recalculates all leaf u-values]  .v]@  ! !Leaf'% $   !.% ! ! A kh  %oP`1Called when the user creates the root of the tree Creates the value measure column ] . %  %J(N    % Value Measure9%5(5( qH  %J(N   % U-Value95( 5( q   %!09 General95(%5( qX   % 09%General95(t5( q   A   AoRecalculates all tree CE's]@ .B@  ! !TrNd' $   ! ! $Ak  o`JIs called when the user changes the form of the u-curve using the combobox] , %"%.!d'B , %"%.. Bx (zd (ztkAAo2Is called when the user changes the value of gamma , %"%.!dGSee Spreadsheet , %"%.(djAAo( qAttribute VB_Name = "Values" 'Simple Decision Treehht@tp://d4t2.sourceforge.netRCopyright (C) 2008 Thomas Sey@ller *This progPram fU software: you can redisit and/or modifyJunder the terms of GNU General Public License Ipshed Vb% FDSD $Fo-at, eir ver33), oo(atar o p)[y laN.xd inchoplh*uwill be useful, WITHOUT ANY WARRANTY; without eveCAzi@=@Zranty1 MERCH@ AB ILITY3 FITNESS FOR A PARTICULAR PURPOSE.~ v'E\@nre detail*s@Y{s@)ld have}ceiv(a cZ0alongB<M)If not, see <Dwww.gnu.@/s/>7@%pD*;G AXddipiNsC6PL 3)c 7 "As a spy exceBT toBMgl/niG.0N{ hereby zntsx!jBs! link D macrofuns~ll@]normally@mes:e s"tardbuilt-@elib0rari@vidG@pff app=a"+#PSub@le(te__b(node_nb) p 'Dep-vAa #measu[D,fm, gZn i"A numbD@im ws `3W(orkedSe"t= A#veXShe%Ac!Rango#"ac@ws.Shapes(Find_Nf).TopLeftCells(c.Row + 1, c.Column - 1).!aǤjb# <> ""en Ah 2 XEls$2End IfA!9At;Ancestors"7B2c+A`jmul5SngSrsA55s/87 rw7ScolB78s@#5C=AutoTBy@= msO+9'p1`XeryaaA$T=?Qnee@d_plusp Fa;'Look""34check0 whe2y + 0sd le04rI6` current }dBFEach s InPSO7  0Is_ChdilQs,b.ThK$w! & "+XR XsV5qrwAc $ YǖW/olc4<p%c- 2?a4vot cc pp .ress() *"P F 'Tru d1Leaf~(y`/ QB= / o GwI@6 z  40Q=3#E("Bch", RA(s.sg)b5))$s0j/ 1(<(/!S(Plc(! ))) [O)]QtAy=Next sx5).N'>a"3HK/^.node is a decision  formul = "=MAX("dneed_coma8False4'Look at all shapend check whe ther y arezscendant lea2v,or s of1 curre) F1Each s In w8s.SuIf Is_Child_N(s,_nb) Then s p& ",S et ccs.TopLeftCHell0rwcc.Row + "1colColumn -7}4s(,, ))b@ Addr0ess( zTruz;@(2A).g"=IF(" &AhE)B ).F@"=$,Chr(34)A62Y gD D) nEJÅ6Leaf  zA!Hi_I- Iaass@h`Ky(Find_b("Branch", Right(s.Name, Lend)O5))Y rwtopbbttql!)Xt0d&_eea^ebe cEIfmNext sg D烄IEs  !Sub Public  Tree_Value_Mea`sure(!A 'Calculat@ʠ CE spfied¿, given its nu0mber Dim As WorksheetESwSActS+'AccRang Z@ bXtring#@Ub`׿+ s!%)rw g%+Bf2StPApp`atP.CommandBars(APPNAME)@ntrols(10pP ""Bv ExitxC 4͑_tZYga o o Coe 2i A Not`Numeric(B߀ w2lb=0,_,if3>0,-1/*LN(1-_),_-1HLg  <> "See Spread&Replace(, "0PrNlf= 0ώ)r@=6>?4 "= Q| F"</y N(Q~ DUq=u_v"Fc0'-LHY-:/-7@3x7olYWith7"_@"Y "./NQX 6General8nt.Underline Bold a T\L\K[u- G m^]d@]]@alscUcA!eseQi i h j j,TְestP1'vS!$)-t`>QD\s(Qϵ&SftE}ӂ-!l{pn"us-c@Sq~a3|thn]ro$t0`Upd?;%p8= :B =5 8r&`E 5).:e:o:8F:d = False End` WithhH ws.Cells(rw + 2, col 5)j.ValueVN:ZNumberFormath"General""Font.UnderlinYq BolCall U__Leaf-6Òuoc`)6)" Sub Public  UQ'Oculates a u-vpositioned  of the leaves-Dim As Workshee"tSet = ActiveSGfApp&a.CommandBars(APP NAME)ntro10).T4exI@"BD Then Exit8x"B*f@ul =_REFga %2%@Not Is@eric()"A #IF =0,_,if>0,1-EXP(-*_),1+))1 <> "See Spread BeCC FReplace(, "B", DHq= 06"f-a F>v  #" &C"$L"3 c+ kIfJB iiibk_cL.y- 1).Address(D0v{a.w N:_w9'h:. t.yRecalc"_ħ'E{`f%_WcၔRang`у7 ' Each s In.Shap Ae+p*InStr(s.Name;d"()Vg}p)d AAp Xc@ s.TopLeftHOc.R ow>`lumn@1iKN $U/Inalize_Measu MeJ!lwauser c`Caroottdre@)'CM m# ! bbb˳a2os( Width14Ó2 - 6 zl"C/Tru!/oA BpzC 0? Ձg~U- / nG/ :/ /0)oEJxЁ1 R    Oa' < / ; A ?=cTT8T : CE'Te H(`$%tx tA t5/ tx t$qt<! F$%lC"25$:` %lC f`%l=$C5$f`%l=$C 5$ q <$x44 tp\XD$0   `t$ @lt=xt>($%T(dD%tx tCt6DJ T(dD%$(4%tx tqt5:d%lCcd%l=DC5Dcd%l=DC 5D q>($ %T(dD%tx tCt6DJ T(dD%$(4%tx tqt5:d %lCcd%l=DC5Dcd%l=DC 5D qJ T(dD%$(4%tx tqt5:d %lC:d %lC fd%l=DC5Dfd%l=DC 5D qN T(dD%$(4%tx tqt6D:d %lC:d %lC fd%l=DC5Dfd%l=DC 5D q3$(4 T(dD 6,$(4 T(dD 6D `8 xtD0   0 `  0       /:8 @ @tx t(A \: ,L`a<`F,:7" 9> 9>p 9p`>P 9P@"0 90 :7" 9" 9::% @ @$x`/(!`/(I`/,q`//,`//$`, `//$ `$9 `$a `nrU~|  ?#Q)y DG %1& H9HYHHH!1 !)I)q)=A?59>HQFH;IKJQJqJJJJ1GIaC$$ MI!M$9Mq F1L!QMyMMMMANYOOO0   0   t$ @lt=xtl 'D8HHH @tx t(($$al)d)t$6(dA(*(85(dA(+(85(KH @tx t(($$a" )t$6(,CX f8tx Qt[rl  - L lX.*1XA(/)`5(`a("i85(`a("i85(5 @ @tx t()`t5(`a("i85(`a("i8|5(0 @| @tx t(lNtClXF8lA( :0\`aL`F<,`1X6 (L\<, c8l  1  lX.*1XA(/)`5(`a("i85(`a("i85(5 @ @tx t()`t5(v=L2A(2(8\"L< 3 <:4N,, 5D%tx t(\t6 (L,<7\a(l)tta"i8t6(1\a(l)tta"i8|t6(0 @| @tx t(lNtClXF8lA( :0\`aL`F<,`1X6 (L\<, c8 s&9lXF% @ @tx t(C"t5( 6CX f8tx Qt[rp l  -S 6 lX7*1XA(/)`5(`a("i85(`a("i85(5 @ @tx t()`t5(lX`a(`#*1X/5( c8:8 @ @tx t(A \: ,L`a<`F,:7" 9> 9>p 9p`>P 9P@"0 90 :7" 9" 9::%(%(p`%$x $ C")t$62(\ 9>p 9p`>P 9P@"0 90 :7" 9" 9::% @ @$x $C")t$62(\`1X6(B @(8(%tx tA t6( :8]3(8((8(5 @ @tx t(ttqpt4!lX F(%lpC"/5(:8 %lpC f8%lp=(C5(f8%lp=(C 5( qp T< tXx\`Hd0 t$(L l # l $$ ` l # l $ l\(L]30- l\(L<"l , % , &5,P`$ \<,t$ @lt=xtJ T(dD%$(4%tx tqt#e4*\R1*#e4*\R1*#e8*\R1*#2acy  * (P Jx J H *` F D D  2h H L  F8 F F L >` F F " 0 X8   8q B B B D@,V "O%"O%(@:sH%  "J 9  ("J@ h x   ,U &O  "J  8  H P X "` hh (C%^7+xME8 (6 *LPL<<<8 f `k@..I `I I  youI modiI& I  x% h`k&&G xxn) a% p?Th% ` k mIn %I  Il @NESSI `See I blic xtail% e red%@xal permissn @t n 3 @d 0@` @P @@ @00 @H @` @h @l @ @  @n` @ @ @  @@8 @Pp @` @P @@ Ar@0 @ @H  `%8 Box0`%@` ra@ `%x $@ U`@ `@H 8$@p`"`  CY@ H'@`Bop'h` x P 8e\F@ t \W@` te@H P DO@@ OW@< \W:\P@X 8_ esx on @ ( de@`  ;C@ \M@ CE@ te@ tu@ on@ C:@h AD@8 s\@ Or@0 x 15@P t Sp@ d y;@` rC@ P ol@ @ C:@ 0 AD@ s\@ AD@ 7\@ bi@( am@@ ck@ te p `ra% X ind `g\% rgr"s\2@`  h ;C:\Cyn@ t LO@ d ;;@ T 1\@ D UT@( 4 @@$ F@ so@@  OF@X WI@p em@ OW@ :\@ C:@ il@ ft@ FI`IN%em3L $*\Rffff*1;4c10e0d4*\R1*#2ab*\R1*#267$*\Rffff*0l4c10d3ce$*\Rffff*0j4c10d3ce*\R0*#13*\R0*#f*\R1*#267*\R1*#268*\R1*#1c8*\R1*       % '0  H  ` Xp 4i *   D(  p ">   "O "   .( @ H P ` h  p x   "      &Q "[ %( @ H X Simple Decision Tree#http://decisiontree.sourceforge.net"Copyright (C) 2008 Thomas SeyllerDThis program is free software: you can redistribute it and/or modifyDit under the terms of the GNU General Public License as published byAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version. ?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************FAs a special exception to the terms and conditions of GPL version 3.0,7Thomas Seyller hereby grants you the rights to link the?macros to functions calls that normally comes with the standard@built-in libraries provided by your office application programs.QDraws a tree branch from the specified starting cell to the specified ending cell] .   %!   %! 'l   %!'n   %!'   %!'   %!   %! '   %!' n l   !%rFBranch 9q     !%r xBranch 9/q       !%rQRSLeaf 9^_qXAdds labels to the branch   %& ! &  $95(q &Outcome   %, give5( numbeGeneral9qp $A?   %( d(    %(eskd   %umber,5(l anceqko aExtends the branches of the tree that need to be extended all the way to the value measure column]` .ape s ]$' child  !de_nb !Leaf' $   ! '   !QWe need to extend this branch of the tree all the way to the value measure column ! ! $$ %. a s ! ! 'ea !'hild !! !!     %!'  ( ! ! $' XBranch $'       !%rXBranch 9Reqd  %ding t 9 9   9qkkk  ohDraws a new front branch] .hest aFBranch $ %B@0th n l   !%r!FBranch 9qoAttribute VB_Name = "Branches"  'Simple Decision Treehhttp://d4t2.sourceforge.netRCopyright (C) 2008 Thomas Seyller *This pr@ogram fU software: you can redisit and/or modi fyJunder the te@rms of GNU General Public License IpsheXd b% FDSD Fo-at, eir v4er33), Foo(atar( op)[y llaN.xd inchoplh*uwill be usefu l, WITHOUT ANY WARRANTY; without eveCAzi@=@Zty1 MERCH@ AB ILITY3 FITNESS FOR A PARTICULAR PURPOSE.~ v'E\@nre detail*s@Y{s@)ld have}ceiv(a cZ0alongB<M)If not, see <Dwww.gnu.@/s/>7@%pD*;G AXddipiNsC6PL 3)c 7 "As a spy exceBT toBMgl/niG.0N{ hereby zntsx!jBs! link D macrofuns~ll@]normally@mes:e s"tardbuilt-@elib0rari@vidG@pff app=a"+PSub Draw_(r` rEcrend,  _number, c_Typpe, O(@* ba) ' a-D from,0fp" iVce{0EDim ws 9Work eSet= A)veSh6e!$y @ws.C sl).T0op +he"/ 2 x ` @1).LefxlinK2= @2J75y, #8c-mthickness*v/ 4 4W!Shapes.Line(&, 2, "_@ Ga.Fa#M " &kP#1End cpb A/ (x -0/$W `"Leaf * 3'svbeDM;%t0p  1"3X .Va\luA>" RA1(A1FonPt.Bom=`urKiOut come"enoc 1! 2.Fals1T.NLFVt`."?!  IsM!lng(O| QFp>e0.5 E _7=XRx01If; 5Try1 e@eL(engpnees(@'Extpn^eT=k2ctBpeSPae@qBd(wayu{v2*measucolumP#bbtb !+_-fRLSMx_Stagy1Maq $ Each s I.nAp&InStr(sRN,C>"+2&)eric (p) Ap H> 0& lB_hT)%P< V Thi61'We n{LsuO OAuQ{q3c(Find%FyL))Ax"yPWwidthyPtnew_;(@CW.Rowlnd%C+ 3A05 * (-]h) qs =P Zbp _s#? xAb"(T"Xs["סbo `'-1+ IQCy, X^ .Name = "XBranch " & bP_nb  End Witha:Elsef^ ws.Shape`s(xb)Nj.Leftold@_leafx*Top)y)widDth+newU - 0tIf6 Next s Su Public  NJF(xstart, xend, y yumber'Draws a j front5Dim As Wor@ksheetZSet= ActpiveSGjFind_m("( ",ƈC").Delet {.AddLine6486 'QT__SRP_22 __SRP_23$Deletion# yކ__SRP_1b(7 rU~| #"#Q)yCFCKK Ly$1L %1&9HAH!aA F9CQFaCL!LyP,t$ @lt=xtq tx tdA `x `PA0(@ )t`6dP0B (@d%tx tPA0t6dPB (@d%tx tPA0t6dPB (@d%tx tPA0t6dP(@d%tx tPAP(0%`x ` A(`@0)t`6 dP0 PV(@d%tx tPA0( ( t6dP0O*j@%*j%*j%0*j`%tx td t5d%:@d`FP% ,n6dPc O*j@%0*j%*j%0*j`%tx tdt5d%:@ d`FP%,n6dPcs*j%0 (@dP*j%*j`%0 (0 *j%tx tt6 %:@ d`FP%,n6dPcJ(@d%(P%tx t0qt5P9:@ dlP P0%lC 6dP0c@%l=dC5d q:@]3J(@d%(P%tx t0qt5Pf@%l=dC5d:@%lC q l eU`?%(@d%(P%tx t0C t6P0O %(@d%(P%tx t0C t6P0'J(@d%(P%tx t0qt5Pc@%l=dC5d q,X@ x 04 t`dP0 P@,t$ @lt=xt DP`tx Qt[<@r8%@A(:P5(' (P]p('5~@A((P5( `g|i@=@A((P"  D%tx tpt6(*pa(*paz*jP6(pa(~*jPx5(pa(ltta"i%paltta"i(P`d%`x `0A )tt`6 (d0 @C>@=@A((P" 6(:PN(( D5((P]3O*jP%x*j% *j@%x*j%tx t(t5(":P(`F%,n6(cz. @tx t(t5(*jP%,x*jP%,~ (*jP%,zc @s8Hp`H<8`xx @p< tt`(d0Dt$ @lt=xtQl:dNTT DD%tx t$  u)t 6T$[ d*jD%*j%*j%*j%tx tTt5T%:dDT`F$%,n6T$c,xt T$arU "@"`/////$"`<"`1Ia/////nrU~|  9C#Q)y!L X1 $!$$ % F1L$yP(L $*\Rffff*0k4c124e17*\R1*#2ab*\R1*#1c8*\R1*#267$*\Rffff*0l4c124e17*\R0*#f*\R0*#14$*\Rffff*0m4c124e17*\R0*#1*\R1*#267*\R1*#268*\R1*#e4$*\Rffff*0l4c10d3ce*\R1*#e4*\R1*#e8*\R1*#2ac  * (P Jx J H *` F D D  2h H L  F8 F F L >` F F  0HP` " h &p   "  2   "  N  PfD'J=C6<}]f=17#&)rQlW>136vj!86w@@01sl^73 xME$@ ((> @    )  /6Z8_(  ` p x "  >     ,    H( ">p &B  $B   ( &B8  ` p x  4  T ( &@  ` h      d ( 8 @ "  H HP       s   px*H   F .H| DqhL|HqPX `h *HpF *HF h(HpB(HBX`h px *:  "   F   0  @H ,X` Z 3  P( Vx &    HX 3p &C  1"3 H  X ,Xh  R  (R@  1 L (8 @ bP  3&C6  ) c c(H` h " p Px   %'  ">8 $B`    "   `   (8@ +H1`1p ."G < & ( h8&H&H   L(x B B &H &H   8 H  P  X h  p x 0R         ^  X!`! 0x!!V! " ""("4X0":sh"""" ""O" "## # (#"*0#1X#;p#2q## B# B$ T $ x$$ 0$$$ $ $%% <(%&QH%.ap%.a%.a%  & &K& 0&@& *H& h& "  p& rx& & &'' +'"E0' X'1`',o'  ' ' '' ' ''( ("J((P( `(p( x( (Simple Decision Tree#http://decisiontree.sourceforge.net"Copyright (C) 2008 Thomas SeyllerDThis program is free software: you can redistribute it and/or modify&Dit under the terms of the GNU General Public License as published byAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************-FAs a special exception to the terms and conditions of GPL version 3.0,7Thomas Seyller hereby grants you the rights to link the?macros to functions calls that normally comes with the standard@built-in libraries provided by your office application programs.Global variables] ] ] `Deletes a leaf given its numberLeaf AoH+Deletes a branch extension given its numberXBranch Ao HDeletes a shape (node or leaf or branch) given its shape type and number] .  $'  G %B@0jo0,Removes an existing branch or an entire node] .]  .8Identify the leaf or node that the user wishes to delete !' !'  $'   $' You first need to pick the node or branch you would like to prune by selecting the cell which is located immediately to its right.'( ( 8 ,A@(|`dX Ak@d8  %. !!' G   %!'j ! G ! ! $'j A ko@7Prunes / deletes a leaf and a branch given their number] .]  %. !!' !!'BDelete the various shapes associated with the removal of this leaf ! ! $'FBranch $ %. B@0Branch $ %. B@0XBranch $' XBranch $ %. B@0k !!' B@0-Call Delete_Tree_Ancestor_Values(leaf_number)MNeed to readjust the branch and leaf numbers on the other branches and leaves $'   $''   A    AA Ad@]If that was the last leaf that stemmed from its parent node... Need to prune that parent node $A koBRenumbers the siblings of branch number first_digits, last_digit-1]x .'& $ '(  ! !Branch "1 !Branch "2 !Branch "3 !Branch "4 !Branch "5 !Branch "6 !Branch "7 !Branch "8 !Branch "9'k !Branch " $'& !Branch " $Branch " ($ ( ! "  !! !! %!Outcome $Outcome ( !! !! %(dH !! !! %! Alternative $ Alternative ( !! !! %(kkkd !FBranch " $ !FBranch " $FBranch " ($ (d !XBranch " $ !XBranch " $XBranch " ($ (d !Leaf " $ !Leaf " $Leaf " ($ (d !TrNd " $ !TrNd " $TrNd " ($ (k k k k k  & $ G " $ Ajo8 @Deletes rows upward in the tree following the deletion of a leaf]X .]x ~  t t $$ %.v   v!! %   % %B@0 d t$ %.JFirst we need to determine how many rows above and below that node and itsObranch we need to delete; the only thing we know at the moment is that there isa total of 4 rows to be deleted''AFind the highest and lowest branches that are rooted in this node  ! !Branch t'  ! t  !!'   G 'j   G 'jk  !!'      $ '   'z t t t $$ %.v v!!'*  z   * %  * % %B@0   z   * %  * % %B@0 dP !!',  z   , %  , % %B@0 k z \Need to readjust the starting point of all front arcs of the branches starting from the node  ! !FBranch t'  ! t  ! ! ! ! ! Branch ! ! $$ %! ! ! $AkH k0k( t t t $'. .$ %!!' .$ %!!' .  AkoIReadjusts the position of all extended branches following a leaf deletion] .]  ! !XBranch' $   ! ! $'0Branch 0$ %. ! (k` oH0ZPrunes / deletes a single node given its number, assuming that it only has one branch left] .]]  %.2 2!!' 2!!' 2!'4 2! 2! '0  %6!8' 2!TrNd $' 2!': : : $' AbErase the branch labels of the branch that just got deleted and which was a child of node_to_prune   %(   %($'< 2B@0 :TrNd FIf it is the root, i.e. the whole tree, that the user wishes to delete  !   %(   %(   %(   %( !Root  B@0|k k'>  ! !TrNd  ! :'>y0k(  : '@XMay need to readjust the size of the tree, more specifically the length of some branches >  ! !Leaf !. B ! ! % ! ! % %B@0k  @ '@k  < @ F  %!'D D 0  D 0  !%rLeaf 9q8 4 D 4 0 D 0 !%rXBranch 9qk >  < @ F  '  %J(N  %J(N   %!   %(   A   %(   %(MLook for the "Value Measure" and "U-Values" cells and shifts them to the left'H  ! !Leaf !!'J J H G J'Hjk  H 'H  H   % H   %!9 H   %!!5( H   %!!5( H   %!!L5(Lq H   %( k   $AjokPrunes / deletes a node and all its descendants given its number, assuming that it only has one branch left]P .]p]  %.2 2! 2! $''N  !!  %!Leaf 'N Ay0k(  N $' G A jdLeaf $ %. !.  (kox)Attribute VB_Name = "Deletion"  'Simple DecisX Treehht@tp://d4t2.sourceforge.netRCopyright (C) 2008 Thomas Sey@ller *This progPram fU software: you can redisit and/or modifyJunder the terms of GNU General Public License Ipshed Vb% FDSD Fo-a, eir ver33), oo(atar op)[y laN .xd inтchoplh*uwill be useful, WITHOUT ANY WARRANTY; without eveCAzi@=@Z`ranty1MERCH@ ABILITY3 FITNESS FOR A PARTICULAR PURPOSE. ?v'E\@nre details@Y{s@)ld have}ceiv(a cZ0alongB@%pD*;G Ad,dipis'C6PL 3)c 7 "As a spy exceBTx toBMgl/niG.0N{ hereby qzntsx!jBsa! link Dmacrofunes~ll@]normally@mes:e stardbuilt-@elibrari@vidOG@pff app=a"+P=Glob"v`ablesc o_ nch_f! )Boole an*dCE, F2Dode node_nb 4r_bddIntegSube_Leaf(f) 'Ia  g`gn i@0numbC)EShaped("! ",c End ` HExted_Bch(nb9 e\e_}dXC  s_type`{b-" (!+$@ȽC )h%A K'@Dim ws!2W(orkeSe"t= AXveXShe%BfFind !P@f > -1`@ws.Bs(f)>.B0mrp>RA0rw c.RowcolColum7e_nbrNQ5By__(rw,ElD]c1o3_od qMsg "1pfirst neKXpicsRkdetwDourlikwoπ``clep(0c  whicbh!loc@m~mPUPaBZ.1 t Box , vbExclamS, APP0NAME'ExitClsH*3LQ.IfEZA&Q 2oC".TopLeftQ).9#7>=wTh7_CESAs# + 1# - 2).Valu QPLenF.a)=<5< /^p= &RW, L- 5-s6/SBHd%3's /@f:!alDS &irRR1qTR D!\to_?E"Ps =QBJCI!duJ0ous @ssoci4"rW_d%1b")%?7xe"Fs)!LdO5I?er?ze:x5sY(" P5  ={m<uG EɀCIfNe@ӈxoldȃʗ ""P;r`W|or C=M,aG- 1)Gl8col * *CoXlumNci1 To !G a`Range(Rs(2`, +,Am5)).De (xlShiftUp3?Fda4 58 + 2 y  52@/_44bH44O,`eJK%!e4e'Nre0adjuAstart!pointall froarcs!`m@BAH4a"FaI~'p > 0a 9aeႯ2CNPDfaaC, s.qs.width,bp?0"&hettP'2I("s ", RtlHcq)68Ga_o- Pa b2Xa9`VVO5qoUoyb 1GrwN?M 2z 4__a)a aS..]@R_Ѐs_AfТ_LeafB_bion( , rw,1, FNa  Sub Pu blic R7_Extended_!e_QP'%ae posit:rԄ@:fola=a l0 c Dim d As Worksheet%t@= ActiveS!S@ab#?S??r!>"X41Q(IsNumeric(p)r=>_x(_5Y5gAA .Ƃ :G-2'%W5 E8 Prune3͡D_s!+ j's`Ed| Js`lSW g n 0 number, assuVgYi]n@ha\Dl !" to_p !c1CSbB*z<@% ?lft`A3 ykGd^_.^SthicknessPM1D(rw)ŢHa* 3p4 _S Repl0ace(K TrNd c""2RnԐ3bfYqY5tYPTree_Va luD w'Erase$a'bgotebw0as a child of node_to_prune ws.Cells(rw - 1, col + 2).Value = " "R3Rold_max_stagM S 2()K .DeletEInam|TrNd " Th,en:'%it is the root, i.e.whole@ tree,at user wisheo d8(For Each s In Shapes8w5~6{4/1Mst.NURMU.s'dEEx]SubKFEnd IfNext DOneedshift_c_left@TruDb1InStr(C3(, ")1 "A"Len) >= B)̒A5%Fals&A ?@@);8>th8is_BŒ"- 5CC'May # to readjusïsizeAmore specifi cally¹lengthA sobranc`^ '6 l~0 0Lea ? j70XBBVA2,g.\A=d_2O2 A SAd=dAP0("  6PB:NPP D%tx t0`t6P0 `uB:NPP D%tx t0`t6P0 `u:NPP D5P(]@B:NPP D%tx t0`t6P0 `ud=PA0B6P0 dP  P&P(0"   (P 5P cP @ 5P    DP 5PH0 @x `d$tP00   0   0       !"#$%&'()*+,-./012345678:;=>@BCEGIJKLNOPQRSTUVWXYZ[\]^_`abcdfghijklmnopqrstuvwxyz{|~ 0 0  0    >rU $(`)/(`q/,`Ii//$`(!`__SRP_1a1Grow 9!-__SRP_16  __SRP_17."9A/,I`i//8q`////$`(`/( `/nrU~| ##Q)y T1 $aC1LADA F LUf the GNU General Public License as published byAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version. ?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************FAs a special exception to the terms and conditions of GPL version 3.0, z7Thomas Seyller hereby grants you the rights to link the%?macros to functions calls that normally comes with the standardNe@built-in libraries provided by your office application programs.ar%Adds a new branch to an existing node!]@ .']` . ]:Identify the node to which the user wishes to add a branch ! !$' $ ]You first need to pick the node you would like to grow by selecting a cell which is close-by.'( ( 8 ,A@('|hk`  %.R' R!!' R!!' R! R! $' R! R Alternative'T of dOutcome'TkCall Delete_Tree_Value(node_nb))Call Delete_Tree_Ancestor_Values(node_nb)PCycle through all existing branches and identify the number of the branch to addBrCycle through all existing leaves and identify the one that is the lowest among those that prolong the last of the existing branches'V 'X'Z  ! !Leaf '  !  WWe have found a leaf that starts from the node to which the user wishes to add a branch !$9DThis node already has 9 branches, you cannot add a new branch to it.'( ( 8 ,A@(|d V 'V !!'\ !!'Z \ X G \'Xjkk  V '^  ^'^  V'V  X ZA`   X V TAf AxAh X Z %09General95(5(q X Z A  ^B R!! R!! %B@6oHFInserts necessary rows when a new branch is added to an existing node,4in the area limited to that particular existing node]@ .]` t$ %.v   v!! %   % %B@   v!! %   % %B@   v!! %   % %B@   v!! %   % %B@If current_node_nb <> "" Then] Set ancestor_node = ws.Shapes(Find_Node(Left(current_node_nb, Len(current_node_nb) - 1)))O Call Insert_Rows_Recursive(Left(current_node_nb, Len(current_node_nb) - 1))ElseS ws.Range(ws.Cells(rw - 1, col - 1), ws.Cells(rw - 1, col)).Insert (xlShiftDown)S ws.Range(ws.Cells(rw - 1, col - 1), ws.Cells(rw - 1, col)).Insert (xlShiftDown)End Ifo`XdAttribute VB_Name = "Gro w" 'Simple Decision TreehhttpP://d4t2.sourceforge.netRCopyright (C) 2008 Thomas Seyller *This program fU software: you can redisit and/or modifyJunder the terms of GNU General Public Li@cense Ipshed b% FDSD Fo -at, eiAr vt b "^7?xMEL@ ((>  L  PL` F F "0 ,8 h p   @>f )x.11"E ( 0@ &H 0p  V    0&@ ^  2` L )       (  @ H  P ` p   $+   >     (  8  H &P  p .  "  L : P  X h 3p N N N0 N $ d V`  Z Z(  Simple Decision Tree#http://decisiontree.sourceforge.net"Copyright (C) 2008 Thomas SeyllerDThis program is free software: you can redistribute it and/or modifyDDit under the terms oer3c3), oo(atar op)[y laN.xd inchhoplh*uwill be useful, WITHOUT ANY WARRANTY; without elveCAzi@=@Zr0anty1MERCH@ ABILITY3 FITNESS FOR A PARTICULAR PURPOSE. v'E\@nre details@ Y{s@)ld have}ceiv(a cZ0alongB@%p D*;G AddipisC6PL 3)c 7 "A1As a spCy exceBT toBMgl/neiG.0N{ hereby zntsx!jBs! 0link Dmacrofun2s~ll@]no@rmally@mes:e stardbuilt-@elibrari@vidG'@pff app=a"+PSub () '6A%new 1 nch!`ex@iLnod^Dim ws +PWorkeSDet= AveShe%Ac!Ranggc`aCell _0to_gSh ap'Idelete__ValueC nbT _Ancestor'Cyc through 6<3 C!O C3xumb@s@dGofle`lC9Jonr|1Ne low amqk{pztOIlSl^a2d~ "bob_q== 1B_C_0 f 'rw_S(0For EaBs InW.pInStr(st'"Leaf " &;PC '1 AP*C) >= *! + 6B'WefPJ _refromoN?oNlN  5 1)"9"K19$ready s 9Dbes,L;Ы CV08ditiJJjJ% kKek8Un?".+e#Eq"$a= sLh%MI`"|> B1*QHN=?0 )!y[Next s5_4w3-P2=5//chNiEPIprtqws_AfV_`,^+ 2, t8SUraw_B ch(rw{ol+ 4, ewEp_, 0) cuv=[">gLndeWFqs(" a.a:0~.N[g@LP~Ge)Font.U␨1Fa*k.Bo|= % # U}g_P  M1?I Gq\nws.{\lb.ate End SubPublich Insert_Rows_After_Grow(current_node_nb, rw, col) 'ds neces sary bs @when a*w branch is added to an existing T,Hin the area limit*that particular 7 Dim ws As Worksh eet Set= Acti8veSKestorlShap=%.s(Find_N)ws.@Range(C`ells( (.TopLeft.Column + 1),3! 6)). (xlShiftDown66 6R!ER'If <> "" T'Ax , LernN -ŏCHallJRe&s(D.Els \ T{QFQ? ? rt\' If~&U$$$"I"H %H!1& H9H!Bt$ @lt=xtt$ (Qtp>pa\paL"i \"i, D6\L, (<]3 :<)','L:<N\\0 6\L,. @tx t\lt5\1la\l ttaL"i<t6\L1la\l ttaL"i<t6\LEla\nlaLn`#J\`F,  /6\L,la\"5\ :<  :<  (< x (<htx Qt[TXrPG0XAL :<\,@6\L@@(<]/\XAL , (0V '6L0:2X=\ \L L:<]36\L :<)','L:<N\\0 6\L,8(<\X=\AL5\X=\ALh5\ xt8 x XsP(<\\\hx(<\  5\+(Lx(<\ 6\L   >x(<\%h @tx tLqt5\:<%lC:<%lCf<%l=\C5\f<%l=\C5\ q&h(Lx(<\ 6\L  la\l ttaL"i<%la,l a "i%x  !)t6 \L, pXTPxx@Xplh8 t\L, 0 (t$ @lt=xt3l "D`%tx t@pt5@pa@l tta0"i`%,x , (%x %x )t,6 @0pa@l tta0"i`%,x , (%x %x )t,6 @0pa@l tta0"i`%,x , (%x %x )t,6 @0pa@l tta0"i`%,x , (%x %x )t,6 @0(,xp0 t,@0frU $`0` ///nrU~| 0  kxrU $ChangeNodeType/y#__SRP_12<__SRP_13-1?gComplementaryProba&Ms/>.?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************FAs a special exception to the terms and conditions of GPL version 3.0,7Thomas Seyller hereby grants you the rights to link the?macros to functions calls that normally comes with the standard@built-in libraries provided by your office application programs.LTransforms an existing uncertainty node into a decision node, and vice versa]@ .]` .]+Identify the that the user wishes to modify !' ! '   >%' yYou first need to pick the node you would like to modify by selecting the cell which is located immediately to its right.'( ( 8 ,A@(|k  %. ! ! $' !'f !'4'h  Branch   >%yd h 'hk  ! R B@0 Z 4 f)@)@ !%PTrNd 9$@5T!V(@9Xq[Also need to create new probabilities on the branches and possibly update the branch labels  hBranch   >% %. !!'j h j  %( j  %!( j  %! Alternative GOutcome  j  %(j dp B@0   %( R 4 f)@)@ !%PTrNd 9$@5T!V(@9Xq%Also need to update the branch labels  hBranch   >% %. !!'j j  %!( j  %!Outcome G Alternative  j  %(j kx  ^Bo`  @FAttribute VB_Name = "ChangeNodeType" 'Simple Decision Treehht@tp://d4t2.sourceforge.netRCopyright (C) 2008 Thomas Sey0ller(.This macro modified z5/8/;9 by William VanHoomisseFn=fix Xbug! '5progr&;fb software: you can redisit and/TorOy(' under the terms ofGNU General Public License pshrb% FD"SD Fo-at!, eir hver33), o'(ataPr op)[y laNE. /MB@% D*;G Adl  )^7UxMEH@<<<6 8,(Rxt  @\ L @< `@, @  @  @ p  @ pp @f 8 @hx ph @X 2ٔH dNC`^8 @( RX@ L@ @ @ @ `"( @ ( p(X @j @ @p .l`2\ 8L 8=(L $*\Rffff*0S4c12422a`  * (P  >x "   J J0 H * F D@ D 2 H LP  F F F0 Lx > F FP "  R   (  20 hx )@X` .h"E   ()   0 8 H X2`h " <  bP  .Lh    ,O  (O  t  x   &H 2`  "  >  8 @ ,H x  .L    (N  t  p     Simple Decision Tree#http://decisiontree.sourceforge.net"Copyright (C) 2008 Thomas Seyller7This macro modified on 5/8/2009 by William VanHoomissen fix "ChangeNodeType" bugDThis program is free software: you can redistribute it and/or modifyDit under the terms of the GNU General Public License as published byAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see vLid"{pff app=a"+dCPC=$Sub c__() ':Tes`X exiM erY!inv`)a\D,! vaaDim ws `2PWorkedSDet= A"veShe%Ac!nRc cɃCxellab Shapt'Identify?!.5r`-`"3"rw` c.Row#colColumn - 1A_s _nb (Search.Find*By_ _`(rw,`)0Els*1{ +'aYNext iCS%.Auto =P msR0!p5Th 'rD #tX Wu.^Oval, @, tp, 12.75d4 1`"TrNd "\ &US fF.pe`3or.RG&B@P(0q8, 0LockA^tRQ)Fa 'Also15cre0w Sbabilpl!3"Acpossib2updQbelsWP %?Q1 ws51?'M?'pi)rw-0/qSM5@sPJNK + 2).Valu1 /  d_RXFont.BoJ= /!p+/)3"Al`|n$iS* 15 Outco491@   xT449515/5'5ill5GB0(15305A25%TV_5_5th[51la1W%10s(115Y1?711o)--Tru\]-g-6"z)O-t 9_1X1-AcC@P>s.qx_U_2?bvP  a}`nrU~| 0  kxrU $`nrU $ `n[Q[ $alls that normally comes with the standard@built-in libraries provided by your office application programs.When a cell containing a probability is selected, this procedure allows the user to make the value of that probability equal to one minus all the other branch probabilities]@ .]`x .] !' !''pLook for the adjacent branch  !!  %!Branch' $   %!!    %!! 'p  %.ykk  p ! ! $'r r$ %! RG'pjk p Error message5Please select a cell containing a branch probability.'( ( 8 ,A@(|k=1' !$'t   t  r $'v vyd v %!.* - *! *! %%'kk ZIf the active cell already contains the formula... it gets "frozen" into its current value+Otherwise, the formula gets entered into it   %!    %!   %(d    %(kxophfAttribute VB_Name = "ComplementaryProba" 'Sid Decisio@n Tree4http://d4t2.sourceforge.netRCopyright (C) 2008 Thomas Seyller *This program fU software: you can redisit and/or modifyJunder the ter ms of GNU General Public License Ipshed b% FDSDH Fo-at, eir ver33), o#o(atar op)[y l6aN.xd Dinchoplh*uwill be useful, WITHOUT ANY WARRANTY; withou`t eveCAzi@=@Zranty1AMERCH@ A@BILITY3 FITNESS FOR A PARTICULAR PURPOSE. v'E\@nre detaiTls@Y{s@)l@d have}ceiv(a cZ0alongB@%pD*;G AddipisC6PL 3)c 7  "As a spy exceBT toBMgl-/niG.0N{ hereby zntsx!jBs! link ADmacrofuns~ll@]normall"y@mes:e Dstardb uilt-@eli`brari@vWork`eDSet= A.veShe%Ac, cc Rang{!c`C /DaShaprw`c.RowcolColu4mncfaFals'Look adjaVtdFi1( To`.Bs..C xp In@Str(wsD(i)., "Bch";aaIsNumeric(p) And~ a ?#h TopLefta# + 16#!;A#T $Tru#E!3$0=! Exd2E0If7Next i}efirst_digits_A_numby=` Mid(38 , Len9) - 87Find_Node(ohd)).Autor Tys= msR9,le2 p%`W'9x'ErressFa1Msg"pPlea#@`Vc7BC9C.$dBox , vbE xclamJ, APPNAMEX?KEPExYb}]f=17=>ASE+̈́W>Ʊ/B(/b @@@ ^7exME@@<<<6 ` F F " 0 8   (  0 @ P "X1"^' B (.0H PX ` p&P*Z  > )H`h  p0   G 8l  P X  `  `p 2 @ ,i( X 6`    Simple Decision Tree#http://decisiontree.sourceforge.net"Copyright (C) 2008 Thomas SeyllerDThis program is free software: you can redistribute it and/or modifyDit under the terms of the GNU General Public License as published byAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************FAs a special exception to the terms and conditions of GPL version 3.0,7Thomas Seyller hereby grants you the rights to link the?macros to functions c 3mu6"=1$la_tT RA v1j69 @i /aH<> 0h1j7c & i -8 -qE6ESSLL'&j).<e& "-"` ?s(cbN01SHN0)ddr"1dq I7'PZ r%alreadqhe a..$. >ge`x"frozen"Ф`d9 curr0SgOrwiseqkeW#a ?} rwa ol)."b=< VAq[}TM 2 __SRP_14A__SRP_150*DgShrink 2=__SRP_a'TY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************FAs a special exception to the terms and conditions of GPL version 3.0,Q 7Thomas Seyller hereby grants you the rights to link the?macros to functions calls that normally comes with the standard@built-in libraries provided by your office application programs.x7This macro modified on 2/9/2009 by William VanHoomissen add "Shrink" functionDThis program is free software: you can redistribute it and/or modifyDit under the terms of the GNU General Public License as published byAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************FAs a special exception to the terms and conditions of GPL version 3.0,7Thomas Seyller hereby grants you the rights to link the?macros to functions calls that normally comes with the standard@built-in libraries provided by your office application programs.:Finds rows within the tree that are blank and deletes them]@ .]`]x warn that this can't be undone] :Shrinking tree cannot be undone. Do you want to continue?'(N Define message.   't/ Define buttons.+ vbCritical Shrink Tree'~! Define title.DEMO.HLP' Define Help file.' Define topic context. Display message. ( t ~  $('d   kz- Variables for first and last row in the tree''0 Find first and last rows in the tree by looking+ for highest and lowest rows of all shapes.  !!  %!!'   'k   'k  For diagnositics6 List row, column, and name of every shape in the tree4For i = 1 To ws.Shapes.Count ' print shape data base ii = i Range("R" & ii).Select" ActiveCell.FormulaR1C1 = i Range("S" & ii).Select@ ActiveCell.FormulaR1C1 = ws.Shapes(i).TopLeftCell.Column Range("T" & ii).Select= ActiveCell.FormulaR1C1 = ws.Shapes(i).TopLeftCell.Row Range("U" & ii).Select2 ActiveCell.FormulaR1C1 = ws.Sh$ (< 4/^7-xME4 6 LPL<8<<<p+z`pk2 tXP%`` `|\s fr@(L red@t< modi@~, @ @ @ @@ xh%` 8 `xH(`zzpp8p@@ (6@Xp p@@ @@p P`@ @x @@ p@@ pp@0| pH pp@@l 0 @h @X @(T @@@D @4 0+@v$ @ @p @ @X @ @ @ @ @ @ C@P/ hC B@| @l @x\ PI@L xI@H @D @4 xn@ $ 8w@ H w*X `@8L $*\Rffff*0m4c10d3ce*\R1*#2ab*\R1*#41*\R1*#1c8*\R1*#267*\R1*#268*\R1*#e4*\R0*#2*\R0*#14*\R0*#1*\R1*#e4*\R1*#e8*\R1*#2ac2  * (P Jx J H *` F D D  2h H L  F8 F F L >` F F  >0 p  J J H0 *x F D D8 2 H L  FP F F L( >x F F BH @P      & , X  0h ( (     0  X P  p h  4x   6 2 10 _P  p        < : X $p ( $ F $0 DX $ 8  J ` _0> Lh 2    H1_0 0 P ( : @ P08    8  ^  B0 dx08 6H> L`60>h 6     $ 0D@.`x  T 1_ ( ^@` 0p8 6> `P6p>        40 h_p68  (Simple Decision Tree#http://decisiontree.sourceforge.net"Copyright (C) 2008 Thomas SeyllerDThis program is free software: you can redistribute it and/or modifyDit under the terms of the GNU General Public License as published byAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANapes(i).NameNext iC move the CE value of the tree (always two rows down from shape #1) to clear row for deletion'v v %!!'  v %!! %B@  v %!! % B@E Check each row, starting from bottom of tree, and see if it is blank    '|'# default is set to delete every row'B check each shape to see if it is within one row of the active row v !! v %!!'   Is there a shape on this row?' Yes, so cann't delet rowk   "! Is there a shape below this row? v + Is the shape not at the start of the tree?J Not OK to delete row above a shape, unless it is at the start of the tree v %!! %!!  'k k k   ! Is there a shape above the row? v %!TrNd'  - Is the shape a decision or uncertainty node?^ If a node, then must move the E-value and CE values so that they do not get deleted with row  v %!! %B@  v %!! % B@  v %!! %B@  v %!! % B@E If at edge of sheet, do not try to cut at Row 0, otherwise, go ahead v %!!  v %!! %B@  v %!! % B@k'#' We moved some values so rememeber thatkkx v Is it still OK to delete Row?  |: |$6B@H  B@0kM If we moved values, we must put them back below the node where we found them  v !! v %!!'    v %!TrNd'    v %!! %B@  v %!! % B@  v %!! %B@  v %!! % B@ v %!!  v %!! %B@  v %!! % B@k'kpkh vkP - Put the Tree CE value back where we found it'v v %!!'  v %!! %B@  v %!! % B@ih`XkAttribute VB_Name = "Shrink" 'Simple Decision T@ree 'http://d4t2.sourceforge.netRCopyright (C) 2008 Thomas Seyller *This pr@ogram fU software: you can redisit and/or modi fyJunder the te@rms of GNU General Public License IpsheXd b% FDSD Fo-at, eir v4er33), Foo(atar( op)[y llaN.xd inchoplh*uwill be usefu l, WITHOUT ANY WARRANTY; without eveCAzi@=@Zranty1MERCH@ ABILITY3 FITNESS FOR A PARTICULAR PURPOSE. v'E\@nre details@Y{s@)ld have}ceiv(a cZ0alongB@%pD*;G` Addip9isC6PL) 3)c 7 "A1As 0a spy exceBT toBMg[l/niG.0N{ hereby zntsx!jBs! l D macrofuns~ll@]normally@mes:e s"tardbuilt-@elib0rari@vidG@pff app=a"+P= ""ÌCAe2/9/ 9) W@piVa nHoom@9en@ add&  @"` '6-!D@7PP *D?WPPPPPrAPoPPcPUrNPPOPPP wPQKPaPAFY 3_() A@Integ'Finds ro~wYԊЊ `blankqPl,etYEmՏDi m PWorkEeSet= ApaveShe!iqV^KRbSng' =At 't“ndon a.Msg, Style, TitaHelp, CtxRespo, MyU1i@RPDorqw qcontinu(e?"Q'fine `sa b vbYesNo + vbDefaultButton2 I@s.qCrc|al  tDEM`O.HLPf8ileA1000 topicH'text?Displtay ePBox(`u)?@˱}7Els5 Exw2`nd If. +bl 0`fir~s̀P4御# max_ro@ 0in-7 ?sIQ?look(Qh Heu TheroAED9x< m#<u? d N % i d@iagnos1s-LL,'lumn,RKnry{'28p tdatpa ba$IA  ia` Range("R" &).Selec@#Qmul`aR1C1_"SUSelect ' ActiveCell.FormulaR1C1 = ws.Shapes(i).TopLeftColumnRange("T`" & iX@Row`U<`NameUNext i 0move the CE value oftree (always two rows down from Bs #1)"to clear@ for dt,ioj1  ro_checkj} s(+ 2, ).Cu Sheet.Paste De stina&:=1 + A==BC2eachA>, stargHpbott@JTS,@ and s@Uif i`s bl ank iDmax_ro @To minAStep -DNi@m5We= 1 '[faul0set cC e0very&D_eplace_needed02e2v@J+within oneʼnaχ3{1X.Coune0g )AIfi Then@I@@here aonisA&?GA'0' Yes7Xann'tWE`7If`B#Qbelow (j > 3) not a?`:`tK t ' 2NOK@ w ab}d#, unlessP  aKaf:(o -s1`2c 3O-1A-(Qi`10' I#(/A) /pkIn0Str(j%, "TrNd"We,p$04BaQTcis @uncertainty noderBj ` a,Pfmust E-c!s so`Cy t g4d d_ l -n qKo `>a7Q$  hlln  ,fCedgB}sQp,uft`a^cuEw 0, o-rwise, go ahead$p/@>b4___P2_RA *2O DEfrvzWe7omeC6remberR7-=BjK ll `BpVO i":m'spH.De Shift:=xlUp b)w%obGwIp(@(mX ba0useK Vw}fdPemS (}ncegWd[asar(`oQ_Q.QLL6266z6==X/ a/ OR/<Ho o o P2O ?a_Q/I> 2U6//OkUzk԰?]=02C N@End If   Next j l di2 ' Put the Tree CE value back where we f$ouitfj = 1 ro_che*= ws.Shapes(j).TopLeftCell.RoNw,!s(5+ 1,8Column $).Cu|ActiveSheet.Paste Destination:=ő121) HFun0on__SRP_b3 FgFlipTree2[__SRP_1cg__SRP_1d6H@PL $*\Rffff*0z4c10dfc1*\R1*#2ab*\R1*#2ac*\R1*#e8*\R1*#e4*\R1*#e4*\R1*#268*\R1*#267*\R3*#1f*\R0*#1*\R0*#14$*\Rffff*0l4c10d3ce*\R1*#dc*\R1*#1c8*\R1*#242*\R1*#1d3*\R1*#10*\R1*#e8*\R1*#e4*\R1*#dcrU~|  #Q)yV[Q[ $aC[[[)FW#*Wp$ @lp=tp :L< :, : (  ,<"L^i]3 ( (1(`pt pav"ip5hlv_` @pt phhaXl TTaD"i4)phT6XD 4tQ 4 4gi 4 `~l ($_$ @pt phhaXl TTaD"i)phT6XD(%$ @pt pXhhaDl TTa"i%t  )phT6 XD(%$ @pt pXhhaDl TTa"i%t %$ @  ) phT6 XD`(pp `1\ (| (l1($pt pav"ip5hL _$ @pt phhaXl TTaD"i)phT6XD `3 (|`(35$(]t$ @pt phhaXl TTaD"(%t al HHa") phTH6 XD (|`(3 ^$ @pt phhaXn`#D i4/D)ph6X4(]t (%$ @pt pXhhaDl TTa"i%t  )phT6 XD(%$ @pt pXhhaDl TTa"i%t %$ @  ) phT6XD(%$ @pt pXhhaDl TTa"i%t  )phT6 XD(%$ @pt pXhhaDl TTa"i%t %$ @  ) phT6XD`$ @pt phhaXl TTaD")phT6XDu (%$ @pt pXhhaDl TTa"i%t  )phT6 XD(%$ @pt pXhhaDl TTa"i%t %$ @  ) phT6XD (l $~L|(]3 Dl\*#Dl\*F%p$ pD/Dp6D.%p $ ppl(]3c1($pt pav"ip5hc_$ @pt phhaXl TTaD"i)phT6XD`(3V^$ @pt phhaXn`#D i4/D)ph6X4(]tT(%$ @pt pXhhaDl TTa"i%t  )phT6XD(%$ @pt pXhhaDl TTa"i%t %$ @  ) phT6 XD(%$ @pt pXhhaDl TTa"i%t  )phT6XD(%$ @pt pXhhaDl TTa"i%t %$ @  ) phT6 XD`$ @pt phhaXl TTaD")phT6XDG(%$ @pt pXhhaDl TTa"i%t  )phT6XD(%$ @pt pXhhaDl TTa"i%t %$ @  ) phT6 XD (l $~V  `0 ($_$ @pt phhaXl TTaD"i)phT6XD(%$ @pt pXhhaDl TTa"i%t  )phT6 XD(%$ @pt pXhhaDl TTa"i%t %$ @  ) phT6 XDht|l\L$`$L,<t4l \|4@ DphTHXDkPB   @ >` > B  8( >` (   * > JX J H *@ Fp D D 2H H L  F F` F L T@ F F  N(x4G^7UxMEP@ > LPL LLLL@d  @ @ @ @ @ G *X+******h for@+******` @@p `l @\  cL @< @, ` @ P35X @ 8  @ E   E I t @p (` @X p  p @ @   @ m 0  H m X  p n  n (x @h o X  o( (H @8 @ p P ( h px   qp \bF@ p18 rd@ 8 1I6i0@  @l  \bF UkBMir@d @T @P D I6i@P4 @h $ @` @  sB C@ cr e@ @0 sB@ @j T@H @x @ O@t ea@d @T @P 80@@ @0 ki0 @X  p @8  @ X@ @  0pPp@l @d @T @(D @@4 @X$ @h @ @ @ @  8@ @ @H `  @ H @ @t @d @T @ P @8@ @P< @, @( @P @ @ @ @ @8 @  @ @ @h @ @ @p H1?( h , 1 .o 8oK 6  X  ` 'x   ("$  4       '0  H P X  p  x    .' 44@ 44  X h  "& X " H P  7p      - %      *  H  X  `      2     8  P  X  h $2    ) ) )   ( 0  8  H$2`     )))        ($2@  h p x )))        $2   H P X )`))        $2  ( 0 8 )@)`)        $2     ) )@)`         <A  ( 78 P B X` h 5x  $E    $E  0  8H  H`.. 2Xh (KP>x   .P>  5   8hHn  .(.X44   5    Hd0Nix ..404h    $   B    0 8$CPx.X8q  *L 8 .XH 8qx  0U.X8qH ",   "*     flip functionx9Generates the tree on current sheet in tabular form, then8flips, and rolls back the tree in tabular form, based onm7number of layers of branches in the tree. Two and Three1<layer tress are allowed with two or three branches per node.bel5WW1Function written 8/7/2009 by William VanHoomissen7Function written as feature addition to Simple DecisionWW"Tree, originally by Thomas SeyllerSimple Decision Tree@#http://decisiontree.sourceforge.net8Copyright (C) 2008 Thomas Seyller, William VanHoomissenDThis program is free software: you can redistribute it and/or modifyDit under the terms of the GNU General Public License as published byAthe Free Software Foundation, either version 3 of the License, or#(at your option) any later version.?This program is distributed in the hope that it will be useful,>but WITHOUT ANY WARRANTY; without even the implied warranty of=MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the,GNU General Public License for more details.AYou should have received a copy of the GNU General Public LicenseEalong with this program. If not, see .?***************************************************************?*** Additional permission under GNU GPL version 3 section 7 ***?***************************************************************FAs a special exception to the terms and conditions of GPL version 3.0,MThomas Seyller, William VanHoomissen hereby grants you the rights to link the?macros to functions calls that normally comes with the standard@built-in libraries provided by your office application programs.G ****************** check current tree for format *********************a]@ .gs\]`xat check for decision nodes  !!nfo  %! R-A tree containing decisions cannot be flipped'( 't Format error'~ ( t ~$('hk` ! check for more than three layers,No more than 3 layers of uncertainty allowed'( 't Format error'~ ( t ~$('k map the tree''' Branch  >% G 'j(BranchW >% 'j R ******************** calculate alternative probabilities ************************]]P$$   $'R********************* rebuild tree in table form ********************************* create and label new sheet] ! - flipped' B@2 .  ( B@H !(0.000 (]]'$ check for number of tables required  '' 6 tables requireddF'' 2 tables requiredk+ load variables for table building function     v    KTFOriginal Order'  v $  v + ' ' ' $ + v$ v+ $ +"'#'$'KTF Flipped #1'  v $ v  + ' ' ' $ + v$ v+ $ +#'"'$'KTF Flipped #2'  v $   v+ ' ' ' $ + v$ v+ $ +"'$'#'KTF Flipped #3'  v $   v+ ' ' ' $ + v$ v+ $ +$'"'#'KTF Flipped #4'  v $  v + ' ' ' $ + v$ v+ $ +$'#'"'KTF Flipped #5'  v $ v  + ' ' ' $ + v$ v+ $ +#'$'"'n  v  build the table$$        $ ' $B@HiX 0] .   %(  '   $  %( '   $  %( '    $ $(  $ $$!( $ $$!(  %B@H =(RC[1]/(R[    ]C[-4] * R[   ]C[-2])) (   $  %(  %!(  ' dF  $  %(  %!(  'k  %B@H  =(SUM(RC[]:R[     ]C[3])/R[   ]C[-2]) (dF =(SUM(RC[]:R[     ]C[1])/R[   ]C[-2]) (k $  $$B@ $  $$B@  $  $$!( $  $$!(   %B@H  =(SUM(RC[]:R[    ]C[5])) (dF =(SUM(RC[]:R[    ]C[3])) (k $  $$B@ $  $$B@  $  $$!( $  $$!(  Format table !JB@  ( Return activeRow 'i]0 .'  Branch $ %. !!'j j !! %!' j !! %! +  Branch  $ %. !!'j j !! %!' j !! %! +   Branch   $ %. !!'j j !! %!' j !! %! +      + dF     +k  iBranch  >% G 'jBranch  >% G 'j8( Cells(i, 19) = ws.Shapes(i).Name1 Cells(i, 20) = ws.Shapes(i).AutoShapeTypeKAttribute VB_Name = "FlipTree" Public Function fh() 2'0 f4&Generates the t lcurrent sheet in tabular@ form,*nSs, and rolls ba ckK:basedb>number of layers branch<. TwoeThQZss are allow/with torE i)p6node.!$written 8/7/2009 by William VanHoomisse~as featuFddito Simple Decis˄:, orPigin]y6Thom"Seyller " http://dq.sourcelge.neBtD Copyh@t (C) 884 ,<This progr DfWsoftw@`: you can rediRsŪitn/@cm`odifyunddermAGNU GBl Licensx@dL FA"SD" Foba`, ev3AA `X(at0@p)-ytG MBceiv`a c M-w along"vLIf not, s<\www.gnu.0org/Bs/>$ *9 Ayal GH#WPL GKse#7 yeŤA sp`| exceBT C@Tgcon#irG.0N~Nhere@}ntsb3` *-hgQNo;Z3TXer?c8ђ= Uc,BEggQd A*mapG:Wfirst_cA/00X0P @irdُ 53w1 i  ipe & ? #A#-thO),Q**]cPalgnatXbabil[1Ulikelihood((3, !)!VDo0F!0cRBaget_gs(()utF !V@>0'o idJab2AGf@r`Blabel xnews! _f'=a_& " -ޗQ2hs.CSje`\==#ba.Si1> 0kloxop_3Cip1as6 0' 6 ElXse:w r ^ iterations = 2 ' tables requi red End If, ' load variXfor n building funcfF@Order1 To  d$i first_count!%j%second &*k*loop`_thir.Select Case X >1: !noteM"Origi(nal7"temp_likelihood(i, j, k)$ %`a@dEDB)f[jIBjm4outcomes(1, iN{ i2@_Ji3o [[colHor1L34 25r36{7d2dI@hdFlipped #1_dJdcd_dUKd\ ,l_de _QY_d b&lj_dK+_d {Gd?_orBdio_d" 3Xd{d2ddkLd)y k2. \2`[2_ yI.o2?  @.o26:2Nr3_ )db2b*d7O d4o2.23/2"01L/2_ +2_.,25/2/ ? Y)/2?j/2J??/2?:-–/jd:/2O }"25/2n24o2bk21o2Pk o2:l2I{2?6 I[o2?? dp`d temp_outcomes(1, k) = @3@ 0:@color136 P2(5 (3(4(Case 6:onote?"Flipped #5"likelihood(j, i i,  )%*first_countIsecxond  @thir'H !ߠ%IIiGLj 2Yj *aΝ _End SelectNextl kbjgi ' build the tableactiveRowE_(5), bE(LWDRd, G+ 8., yDB`OrderCell"1).%D a'Funon Publ8ic e"dByRef) As String,N cADo` e, * GwdfxDim ws Workshee@Set= AB7S'"ws.c" ,, `#Valu*0=j21ForlayerD1 ToiX| ' total1_rRQ .* 1mQ3).%F S 7ha 2If#q > *he*83 (5!>Ln 5 (6l URange(@@N6)).Interior.CqIndex#M.3s(,$ 5, Bo@. +5u6Dy7.PmulaR1CQ"=(RC[1]/(R[" &D -7 - ,)"]C[-4]x * $2]))r a 8, 7L8, 9.[Kr'!Font1_u/ a& `#+  ba(, Else: %f>?=1 0YW78XXRmIfW6H, 4gqEOH TOHpc//SUM/q/3-:-({--N& q03])/U0G /3!3`0X0u @ 1 B 1 hi9 P wIT3?NЁ3TMerg?1gQ, X34??3w7]]2$P q ).\@?>>JS/", 2/_/_/ԕ^ ^/5%%"/5\,,Iell.FormulaR1C1 = "=(SUM(RC[" & B3 "]:R0(activeRow - total1_row)1NC[3]))" End8 IfRa nge(Cs(, 1),  d1).Merge?2?2)"??Interior.ColorIndexc14k+Borders*(+Next first_layer  ' at t(ablw"umns.AutoF it.VerticalAli@gnment^x lC(Return ^Cbui8ld_@  wFunon Public  ge+ikelihoods(ByRef lF() As Do e, Cout comesSt ring,>count, second_Dthi r)+Dim wsWorksheeASet= ASGV?8^C@X] ToI# branch bSha2p1Fi*("B"3)-rw_F.TopLeftp.temp|By- @ + 0).ValuAF] L)CG(  1 a*$8-*:?+2+@ - = -.2! 6.! .~2fZCB . If e > 0 TheviA4,b?!4 4e55er66e 7s83,893,,9|xh% Ȫ(x+K!1 * 2t3h(Else: k[||R >br[ja +#Q)y $!  !9!a!!!"Q"""#Q##$$$ %)%Q%y%%%1&Q&&&&'Q''0   l d$ @ld=hd54$rU $`X`( 1Qypk////////@`1Qykp///n0* pHdDecisionTreeNurseryToolbar:@ j =  L J<9stdole>stdole h%^*\G{00020430-C 0046}#2.0#0#C:\WINDO*0*C:E|}]f=17klmI6W>PfD'J=@@@_VBA_PROJECTr>dirM__SRP_0;=__SRP_1e%dzG K1KW \uXC Y uIhmUtTqM^Hf^xXSG.҇Hą]IiE0x+~lSH-D6C'JzI #u\@?.|!PN ,0aHq@J@K6H1aKO뉞}XG2ٔJ!6:K%dNC` KDsrN7:Qfwidth Excel+ VBAWin16~Win32MacVBA6# DecisionTreeNurseryToolbar$stdole`OfficeuMSFormsC ThisWorkbook| _Evaluate Workbook_OpenctlCommandBarControlPMenuItemj Application* CommandBars  FindControl mID]MsgBoxR vbCritical+}(APPNAMEKpControlsKDeletexAddrcaptionxOnAction Generalj7(ShowNurseryToolbarWorkbook_BeforeCloseCancel Sheet1(u_curve ComBarNursery| CommandBarErroNumber-Visible (CreateToolbar SubCtl(( (AddButton` UtilCommandButton1|Picture*CommandButton2}CommandButton3~CommandButton4CommandButton114BCommandButton125BCommandButton5CommandButton6CommandButton7CommandButton8CommandButton9CommandButton103B(AddButton_no_picmsoControlButtonnStylepmsoButtonCaption TooltipTextb?Enabled۪msoControlComboBox>AddItem msoControlEditmsoControlPopupl)FaceIdi ProtectionmsoBarNoCustomizevheight|onacttooltip[Epicmask-BtnzCommandBarButton9 mycontrol{msoButtonIconAndCaption1l IsMissing (HelpClick HelpfShow (AboutClick} About)CommandButton1_ClickHide9zTextBox1_Change= Testing (Exists_TreeMws_ WorksheetcZRange  ActiveSheet%N ActiveCellsjShapes<pg IsNumeric$*(Is_Admissible_Cell:rw_RowcolHColumni TopLeftCellV(Extract_NumberlcRight  Construction+ (Find_Branch{ branch_nbA ( Find_Shapec (Max_Stage leaf_stageB (Max_Stage2L(Reposition_Nodesunode_nbe(Reposition_Node ^(Tree_Values_No_Repositioning" ( Tree_U_Value( Tree_Value_Measure} (Is_Child_NodeC~pp^ (Is_Child_LeafnodeB<Shapebranchdc (rU~| +#Q)y $!  !9!a!!!"Q"""#Q##$$$ %)%Q%y%%%1&Q&&&&'Q''0   l d$ @ld=hd54$%$(T%dh dCd5$D(Tb$(4Dh E"F4%$(T%dh dCd5 $T(4DhE"F4%$(T%dh dCd5 $T D(T]t(4t DhTHt"F4%$(T%d$ XdCd5$(T%d$ Xd$(4%P$ XP@0<@$ (4%$(T%dh d=@#Cd6@$D(Tb$ t~T^K""k4%$(T%dh dCd5>(4%$(T%dh d=@#Cd6@$D(Tb$5 @(D%dh d@d5@ D(T]t$#*#%*F,$T(D@:4&:$'%d$ (d,2d6 ,$#*#%*F,$T(D@:4(:$'%d$ (d,2d6 , @(D%d$ Xd@$($%(%P$ XP,<,@$ <4)dP<6@, @(D%d$ Xd@$($%(%P$ XP,<,@$ <4)dP<6@, @(D%d$ Xd@$($%(%P$ XP,,<,@$ H`09 Util0K4c1249e9UUtil*H About0K4c1254b4 About`Testing0i4c10d3ceTestingJxConstruction0j4c10d3ceConstructionBx5Help0J4c12548dHelp3 NewNode0j4c124e17 NewNodex0 ]NodeSearch0l4c10d3ce>NodeSearch?(( Values0l4c124e17^ Values0RBranches1;4c10e0d4dBranches+%Deletion0k4c124e17BDeletion30 ylGrow0P4c12422aPGrow?08"ChangeNodeType0S4c12422abChangeNodeTypeUP/$ComplementaryProba0t4c10d45al$ComplementaryProbaeh Shrink0m4c10d3cex Shrink-:/FlipTree0z4c10dfc1FlipTreeUG `x8Ph0lC1I !qG NodeSearch9( Ancestorm Deletion%( Delete_Extended_Branch ( Delete_LeafwcounterColumnsp9xlShiftToRight0 ColumnWidthAddShape,msoShapeRectangleFill, ForeColorLockAspectRatioc msoShapeOval͖ (Insert_Rowsz Values( Initialize_Measures ( Split_Measures( BranchesU ( Draw_BranchF;( Lengthen_Branches} ( Tree_Valuesoystart xstartPlng?AddLine8current_node_nb%| ancestor_node(Insert_Rows_Recursive d nb_rows_above(OLD_Insert_Rowsis_leaflfor_grownew_rwnew_colB(Nb_Rows_To_Insert_Abovef shape_typeshape_nbm( Find_Node_By_Row_ColtxCount0vsrwQsrc>( Find_Leaf_By_Row_Col Find_Leaf_To_DeleteA( Delete_Tree_ValueXValueK( Delete_Tree_Ancestor_Valuesrss'_formul& node_shape_nb AutoShapeTypeY need_plus}rwcycolc rwcpNxcolcptDccc}AddressFormulaqY need_coma܂ChrK~ rwtopbranchg coltopbranchtkgammaReplacef u_value_cell NumberFormatRFontU UnderlineBold ( Node_Values- ( U_Value_Leaf value_cellS( Recalc_Leaf_U_Values/( Recalc_Tree_ValuesQB( U_Curve_Change_ ( Update_Gammarstartcstarttrend branch_number|proba xintermedtxend"yend p thickness'~ old_branchOMx_Stage old_leafxJ old_leafyG new_leafxgxb_( other_branch_foundD ( branch_CE@ ( branch_CE2( node_nb_for_node_deletionQleaf_nb ( Delete_Shape( Prune/ ( Prune_Leaf6 ( Prune_Nodes leaf_shape_nb"leaf{shape_to_deleteY leaf_numberxbranch_shape_nb%last_digit_deleted_leaf^first_digits_deleted_leaf( Renumber_Branch_Siblingss( Delete_Rows_After_Leaf_Deletionpk.( Readjust_Extended_Branches_After_Leaf_DeletionY ( Prune_NodeZ{ first_digitsa last_digit 9 branch_foundnew_last_digitlcolxrcol2ancestor_node_nb xbranch_nbo node_to_prunelft$RowsU RowHeight node_name> old_max_stageneed_to_shift_cells_leftxthis_node_stageEk xlShiftToLeft lft2" stage_adjust top_leaf_rowS# this_leaf_rowItalic!found_a_leaf_to_pruney( Growd node_to_grow new_branch_typeAnb_branch_to_addMrow_lowest_leafleaf_col|row_leafglast_existing_branch ( Insert_Rows_After_Grow^ ChangeNodeType(Change_Node_TypeXtpI_ nb_branches^ rw_branch ComplementaryProba3(Complementary_Proba.found+first_digits_branch_numberlast_digit_this_branchPja ShrinkK9 (Shrink_Tree}ii]Title~CtxtResponseMyStringvbYesNovbDefaultButton2vbYesa?max_r6@6XDL}]f=17#&)rOW>klm~r!86w@@@@omin_roro^ro_checkZCut.Paste Destinationл delete_roFreplace_needed( SelectionZShiftxlUpWorkbookk BeforeClose~;ItemzUserFormNCommandButton136B_B_var_need_to_shift_to_right_Defaultj_B_var_new_node_nbD2_B_var_counter_B_var_s_B_var_p _B_var_rw _B_var_colY< _B_var_ystart _B_var_xstart _B_var_lngPl _B_var_LeftQ_B_var_t _B_var_formul _B_var_gammar_B_var_value_cell~_B_var_xintermedfn _B_var_xendO& _B_var_yendu_B_var_thicknessw _B_var_Right9_B_var_Mx_Stagep_B_var_leaf_stage_B_var_old_leafx_B_var_old_leafy _B_var_new_leafxq_B_var_branch_nb`; _B_var_xbw_B_var_node_shape_nb'_B_var_need_plus _B_var_rwc _B_var_colcM$ _B_var_rwcp _B_var_colcpa _B_var_ccc:_B_var_need_coma! _B_var_Chr\;_B_var_rwtopbranchHx_B_var_coltopbranch3_B_var_i  _B_var_pp]_B_var_u_value_cell _B_var_Msgbr_B_var_node_nbY_B_var_new_branch_typeԞ_B_var_nb_branch_to_add<_B_var_row_lowest_leaf_B_var_leaf_colT_B_var_row_leaf/_B_var_last_existing_branch_ _B_var_srwb _B_var_srcO_B_var_max_branch_row5_B_var_min_branch_row_B_var_branch_row}M_B_var_old_node_rowƻ_B_var_new_node_rowj_B_var_nb_rows_aboveP_B_var_ancestor_nodeE_B_var_l _B_var_f _B_var_max_roF _B_var_min_ro _B_var_ro_B_var_j _B_var_ro_check"_B_var_delete_roO_B_var_replace_neededxRImage1_ MultiPage14?Frame1Label1,Frame2Label2,Frame4Label4,Frame5Label5,Frame6Label6,Frame7Label7,Frame8Label8,Frame9Label9,Frame10Label10@Frame11Label11AFrame12Label12BFrame13Label13CFrame14Label14DLabel15EFrame15Label16FClickLabel3,TextBox1SFullTextGPLTextBoxCTextBox3SChange _B_var_tp _B_var_lft5k_B_var_nb_branches? _B_var_branch _B_var_rw_branch _B_var_found _B_var_Midp!_B_var_first_digits_branch_numberA_B_var_last_digit_this_branch , Frame13_Click#Frame16Label17GFrame17Label18HFrame18Label19IFrame19Label20eModule1b(flip vbInformationnresponceG first_countN second_count. third_countTX likelihoodoutcomes.aX(get_likelihoods new_sheetSheets BordersC" ColorIndextemp_likelihood2 temp_outcomesvv activeRowloop_third_countH iterationsOrderAkbnote>temp_first_countEItemp_second_count$temp_third_countRcolor1&Jcolor2'Jcolor3(J (build_table first_layer= total1_row6 second_layer total2_row* third_layerިInterior; FormulaR1C1SMergeq_AutoFit& VerticalAlignmentʡxlCentertemp1LCtemp2MCtemp3NC FlipTreew_B_var_responceЁ_B_var_first_count0_B_var_second_count_B_var_third_count5:_B_var_a_B_var_activeRow_B_var_loop_third_count_B_var_iterationsc _B_var_Order_B_var_k  _B_var_note_B_var_temp_first_count~_B_var_temp_second_count,__B_var_temp_third_count _B_var_color1 _B_var_color2 _B_var_color3_B_var_third_layer_B_var_first_layer _B_var_temp19_B_var_second_layer _B_var_temp2: _B_var_temp3;_B_var_total1_row_B_var_total2_rowU6 _B_var_node_B_var_found_a_leaf_to_prune _B_var_leaf_B_var_leaf_number\_B_var_xbranch_shape_nb!_B_var_last_digit_deleted_leafW _B_var_first_digits_deleted_leafU_B_var_branch_foundkS_B_var_new_last_digitf _B_var_lcol _B_var_col2<$_B_var_ancestor_node_nbژ_B_var_xbranch_nb7_B_var_y_B_var_branch_numberS_B_var_node_name_B_var_old_max_stage_B_var_need_to_shift_cells_left _B_var_this_node_stageT_B_var_stage_adjust,( _B_var_lft2_B_var_top_leaf_row\_B_var_this_leaf_rowaCommandButton13_Click)CommandButton147BCommandButton14_Clicka_B_var_Find_Leaf_To_Delete\_B_var_Worksheet Frame19_Click>Frame20ɓLabel21f Label20_Click A"e /&U!- Q ? C c,m9!y _ .0D   ( A@ @@@@  A@ @ @ WS\syst em32\e2.tlb#OLE Automatm0EOfficEOfic5EE2DF8D04C-5BFA-101B -BDE5EAAC42EProgram Files\CommonMicrosoft Shared\OFFICE11\MSO.0DLL#M 10.0 Object LibraryKMSForms>SFrms3D452EE1-E08F0A-8-02608C4D0BB4SFM20L'BF _&/;"1?jIqAHq00}#@8@q# 5h0 A6738251A-FDB7-48E7-A7DD-2EC059B9m76DOCUME~1\wvanhoom\LOCALS@Temp\VBEb7.exdc!(e UtiUiB2/ !)*+ AboutG* @ A:u-F2L  *Testing*T *in|g9* os@SmJ*)SConstrucAYCWnYtrDuti""HYo5/= Bka9HelpGb9H lp Oc<o o 3u.NewNodec.N wN~d #Yc. or]oIASearchGKESa.c`xvK'23,?({)ValuessCV;ussCdR9BranchPZB a-e&52?s$%+Dele3.qDpA- 5=yl 3q+Grow,G0ow,q7,u?̠+?;Change"Typ-Cp$g5&Ty46e_2_eU /?U ppleme nt baG$q6m mp Fn@V10yPb p)roba.2[a#2 e{ Q0Shrin~RurP>n}u:/-1(FlipG/FmiTQ}325s*=4GUzI11rU~~~~~~~~~~~~~~~~~~~~W   !   By_Row_Col Find_Shape Shrink_Tree @Simple Decision Tree Toolbar 1.3ShowNurseryToolbar CreateToolbar AddButtonAddButton_no_pic HelpClick AboutClick  "\MbEG&@cظA/Ee5AS&BKPmvNIY@!A+{>YJsε?F`Frame5!-6S` P"-?@Label8Frame9Label9Frame10Frame11Label11Frame12Label12Frame13Label13Label10Frame14Label14Label15Label16Frame15Frame16Label17Frame17Label18Frame18Label19Frame19Label20ȏ[qJ eUserForm?<7H;fV4 F3Dynamic  9`YL&i eImage1 MultiPage1Frame1Label1Frame2Label2Frame4Label4{lFWJOCommandButton1Label5Frame6Label6Frame7Label7Frame8CommandButton1_Click Frame13_Click h^A P(OA<'f[`Bʌ+\=Z*8C`|cV\N{ҺK_Q2bҋB `TextBox1FullTextGPLTextBoxO-TO*x׉0 Y 9Label3TextBox3TextBox1_Change dModule1Change_Node_TypeComplementary_Proba Delete_LeafDelete_Extended_Branch Delete_ShapePrune Prune_LeafRenumber_Branch_SiblingsDelete_Rows_After_Leaf_Deletion .Readjust_Extended_Branches_After_Leaf_Deletion Prune_Node Prune_Nodes $Insert_Rows_After_GrowDelete_Tree_ValueDelete_Tree_Ancestor_Values Tree_U_ValueTree_Value_Measure Node_Values Tree_ValuesSplit_Measures U_Value_LeafRecalc_Leaf_U_ValuesInitialize_MeasuresRecalc_Tree_ValuesU_Curve_Change Update_GammaFlipTreeflip build_tableget_likelihoodsFF)F9DF ZA tree containing decisions cannot be flipped Format error Branch XNo more than 3 layers of uncertainty allowed  - flippedFBordersColorIndex 0.000NumberFormat Original Order Flipped #1 Flipped #2 Flipped #3 Flipped #4 Flipped #5 SelectK*y0          rU ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ ~~~~~ ~~~~~~~ _#ؾ)Jb'  a )(( a @  !Aqa ```a Q))a  Q q Aa   ) I y  Ya hfha  ( 9 Y y  a  A a a  1a )Iq1Ya " XE1EaEa X  Ai) a  ))a  Aa  ia  a  `   ThisWorkbookSheet1GeneralUtilAboutTesting ConstructionHelpNewNode NodeSearchValuesBranchesDeletionGrowChangeNodeTypeComplementaryProbaShrinkDecisionTreeNurseryToolbarF@C:\Program Files\Common Files\Microsoft Shared\VBA\VBA6\VBE6.DLLVBAOLD_Insert_Rows{lFWJO  0F4C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXEExcel a@0FC:\WINDOWS\system32\stdole2.tlbstdole qPL-[DR?C:\Program Files\Common Files\Microsoft Shared\OFFICE11\MSO.DLLOffice Qy`.E .`M C:\WINDOWS\system32\FM20.DLLMSForms qqp%8gH.YG 2C:\DOCUME~1\wvanhoom\LOCALS~1\Temp\VBE\MSForms.exd aq Exists_TreeIs_Admissible_CellExtract_Number  Find_Branch Max_Stage Max_Stage2Reposition_NodesTree_Values_No_Repositioning Is_Child_Node Is_Child_LeafReposition_Node NewDecNode NewUncNodeDraw_Tree_Root Insert_RowsInsert_Rows_RecursiveNb_Rows_To_Insert_Above Find_NodeAncestorFind_Node_By_Row_ColFind_Leaf_xVBE6.DLL #S   TopLeftCellRow Column ValuepFUF =(RC[1]/(R[ ]C[-4] * R[ ]C[-2]))Font =(SUM(RC[ ]:R[ ]C[3])/R[ ]C[-2]) ]C[1])/R[ ]C[5])) ]C[3]))F=SM 2h:4]Nx>LM[~DCommandButton7CommandButton8CommandButton9CommandButton10CommandButton13КτAu̳ILs . 9(CommandButton2CommandButton3CommandButton4CommandButton11CommandButton12CommandButton5CommandButton6 tďYl| +Unc $NewNode.NewUncNode :Create a new uncertainty node Change >ChangeNodeType.Change_Node_Type$ Transforms an uncertainty node into a decision node, and vice versa. Grow! Grow.Grow @Add a branch to an existing node Prune! Deletion.Prune BDelete an existing node or branch  LComplementaryProba.Complementary_Proba dRemoves unused rows from sheet to make tree shrink Flip FlipTree.flip Help` zMake this probability equal to 1 minus the sum of the other branch probabilities. If the cell already contains such a formula, using this function will freeze it into the value it contains. Shrink $Shrink.Shrink_Tree See Spreadsheet zFlips tree to assess posterior and preposterior probabilities F Style u(x) = NPlease specify the form of the u-curve. xAddItem &1 +/- exp(-gamma*x) *Values.U_Curve_ChangeText gamma = &Values.Update_Gamma Help... HelpClick FaceId About... AboutClick F {20 #P 8 OutcomeActivate xYou can only create a node at the end of an existing branch. LeafFFLeftTop InsertColumnWidth Alternative TrNd  F F 1 Draw_BranchLengthen_Branches New_FBranch 2 #L pName TrNd #1  height width Root #i  Value MeasureUnderlineBold U-Value 0 General =_ t=IF(gamma=0,_,if(gamma>0,1-EXP(-gamma*_),1+EXP(-gamma*_))) gamma =1-EXP(- *_) =1+EXP(-Address _Formula #  FBranch  Branch  Leaf #k 8 XBranch XBranch  = + * =MAX( , =IF( ) #` X" =IF(gamma=0,_,if(gamma>0,-1/(gamma)*LN(1-_),-1/(gamma)*LN(_-1))) =-1/ *LN(1-_) *LN(_-1) # x FBranch> You first need to pick the node you would like to modify by selecting the cell which is located immediately to its right. Alternative  Outcome _4/Kv4C`?ʋ,;O8>/*JM51h s7JBD:N50 You first need to pick the node you would like to grow by selecting a cell which is close-by. 9$ This node already has 9 branches, you cannot add a new branch to it. tShrinking tree cannot be undone. Do you want to continue? : ShiftC You first need to pick the node or branch you would like to prune by selecting the cell which is located immediately to its right. 3 4 5 6 7 8RowHeight Italic Shrink Tree DEMO.HLPCutDestination PasteR&In \ 9&݌NnZp]90AC\%.fC bb?O"PHV6*>KLph7\/>dELM Q] 9N]nF{ͯPA@ Ad%/?MceB,J?MGMϫ;@M#N-ꢆnJ#c$id ^ 9pYJJT+erXGȴWUJcUa#A G0H`KnJb8]J-;{CommandButton14鈝 KN2$ ` 9CommandButton13_ClickCommandButton14_Click x7`pkErN\i݉qEsK9W_6C%UD2qNx]qH -EuuhY@#6s a 9}GՎZ;p@LK#( QR;fG4@;LFZN+ 0gJ$W+bK=η )c 9 BaN[n\VR0 `LjcЂ0*҂5D(wn#3ԍk7D `VM+m|a}\*AA d 9p w`IM&JVx% .AJ̆.>DDoKaM,A4Oԧ;k* @J6W&6JlDݯ i 9` <   #     s branch_nbnode_nb Branch_Typerwcolcurrent_node_nbis_leaffor_grow shape_typeshape_nbwidthheightcaptiononacttooltippicmask  a Y( 8 H X h xleaf_nb leaf_shape_nb first_digits last_digit node_shape_nboutcomestemp_likelihood first_count second_count third_count activeRowcolor1color2color3note likelihood Y(Cancel .rstartcstartrend branch_numberprobaxstartxendystartyend 1\ y] ^ 1` b Qc d Af h( i8 (H  @}:,R KQDBTahoma,UCommandButton1,UCommandButton2; ,Util >10Gހ1f} o=?CompObj@ag ER KQltTBMT6(WRTxxx@@@(((@@@xxxhhh߿000XXX@@@HHHHHH888```000hhhxxx (((hhh000XXXhhh(((hhh888XXX@@@HHHXXX888```0000000 pppxxx 000```PPP@@@ @@@ǿuTahomag DR KQltTBMT6(WRTxxx@@@(((@@@xxxhhh߿000XXX@@@HHHHHH888```000hhhxxx (((hhh000XXXhhh(((hhh888XXX@@@HHHXXX888```0000000 pppxxx 000$$$090 edflw}]f=17=>ArQlW>87;Ʊ/B(/b @@@@@@@@888+0+```PPP@@@ @@@ǿuTahomag ER KQltTBMT6(WRTXXXQQQhhh(((XXX000HHHϟ^c^  6 @@@@ 9 $ TZT@@@TZT LpxP(8@8888P\bib5|?GOGPPPAIA L V9D9000iqi J VGOG1?```ppp$t|! ejeJXAIA | ppp```@LINI(0(dp  PPP$% ```!5UUU```/@```*@www```/>>> ! | (((JQJTdxxx 6 Bprpt|秧000 > JejeHHH%/%ht!|(@@@1?8881x|<owo(hp*HHH!)! 6 tx B  0003Px|X 6 TZT  ((((AIAxxx```߿ hhhhhh(((XXXggg```׿uTahomag ER KQltTBMT6(WRTXXXQQQhhh(((XXX000HHHϟ^c^  6 @@@@ 9 $ TZT@@@TZT LpxP(8@8888P\bib5|?GOGPPPAIA L V9D9000iqi J VGOG1?```ppp$t|! ejeJXAIA | ppp```@LINI(0(dp  PPP$% ```!5UUU```/@```*@www```/>>> ! | (((JQJTdxxx 6 Bprpt|秧000 > JejeHHH%/%ht!|(@@@1?8881x|<owo(hp*HHH!)! 6 tx B  0003Px|X 6 TZT  ((((AIAxxx```߿ hhhhhh(((XXXggg```׿uTahomag ER KQltbLBMbL6(VK,Lׯ``hhϟ``۷@@QQhh߿((߿߿߿߿߿߿xxϟ@@00ϟÇÇhhh 000```hhh888```00```000@@@HHH@@ (((˗pppXXXpppXXX((PPPPPPHHxxxXXXӧhhPPPppp000000``۷ppp>G>``(((#*#hxxx 9 ӧ888  HH!(!h888JQJT˗```AAAili```^^^```TTT```888^^^000AAAPPPXXX``` ```pppppp888 ((( 000@@@pppPPPppphhhPPPhhh (((888@@@000```xxx(((``` XXX``` 888``` @@@@@@@@@@@@(((PPP߿HHH@@@@@@XXX000``````߲,0,=17}]f=17klmSE+̈́W>PfD'J=@@@@@PPP8@8߲:@:xYb}]f=17uTahomag DR KQltbLBMbL6(VK,Lׯ``hhϟ``۷@@QQhh߿((߿߿߿߿߿߿xxϟ@@00ϟÇÇhhh 000```hhh888```00```000@@@HHH@@ (((˗pppXXXpppXXX((PPPPPPHHxxxXXXӧhhPPPppp000000``۷ppp>G>``(((#*#hxxx 9 ӧ888  HH!(!h888JQJT˗```AAAili```^^^```TTT```888^^^000AAAPPPXXX``` ```pppppp888 ((( 000@@@pppPPPppphhhPPPhhh (((888@@@000```xxx(((``` XXX``` 888``` @@@@@@@@@@@@(((PPP߿HHH@@@@@@XXX000``````uTahomag ER KQltGBMG6(THF``````ZZ(( 00((@@翿hh珏@@@@@@PPPXXX@@@ 000 ppp pppPP((((((``@@@XXXxxxppphhh`````hhhxxxHHHHHXXX  pppppZZp@@ ))8hhhxHHH(00(000AAPxx```888^^h```TTT```TTT```888^^_000AAA hhh@@@ hhh((( 000xxxhhh``` 888HHHXXXhhhxxxHHHppphhh```@@@@@@XXXxxx((((((@@@ ppp pppXXX珏@@@@@@PPPXXX@@@ 000翿000```xxx((( xxxhhh@@@@@@@@@@@@@@@@@@ XXX```ZZZ```uTahomag ER KQltGBMG6(THF``````ZZ(( 00((@@翿hh珏@@@@@@PPPXXX@@@ 000 ppp pppPP((((((``@@@XXXxxxppphhh`````hhhxxxHHHHHXXX  pppppZZp@@ ))8hhhxHHH(00(000AAPxx```888^^h```TTT```TTT```888^^_000AAA hhh@@@ hhh((( 000xxxhhh``` 888HHHXXXhhhxxxHHHppphhh```@@@@@@XXXxxx((((((@@@ ppp pppXXX珏@@@@@@PPPXXX@@@ 000翿000```xxx((( xxxhhh@@@@@@@@@@@@@@@@@@ XXX```ZZZ```uTahomag ER KQltfBMf6(0333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333uTahomag ER KQltfBMf6(0uTahomag ER KQlt@BM@6(JJ@'))I6W>~r!86w@@@@@@ IEI|}]f=178*rO狋ssddLLQQddLL^BB0-- 99RR^hh0@@(( 00RR PP(((PPT>>PPwwQQPPRRddPP22www PP PP!##PPJ::PPtIIippPP [[__ @@PP00000(( @@HH00`` HH!88``(@@`` hh(@@``(@@``((ipp00``%88``APPAPP9PP ipp((9PP9PPϟ 9PP^c^  6 @@@@ 9  999PPTZT LpLc^9PPP> bib5|09PPAIA L 9PPiqi J 9PP1t9PP$t`80 00MXXejeJLc^OJ44 ((0@@^hh|>@@QJ80(9 @T  @V9 @T`tL^c^(0(dp  $30< 9 @ 6 @, 9  0 |  JQJTd(0( 6 B{}{t| > Jeje%/%ht!|(1?1x|<owo(hp*!)! 6 tx B  3Px|X 6 TZT  ((((AIA߿uTahomag ER KQlt@BM@6(JJ@狋ssddLLQQddLL^BB0-- 99RR^hh0@@(( 00RR PP(((PPT>>PPwwQQPPRRddPP22www PP PP!##PPJ::PPtIIippPP [[__ @@PP00000(( @@HH00`` HH!88``(@@`` hh(@@``(@@``((ipp00``%88``APPAPP9PP ipp((9PP9PPϟ 9PP^c^  6 @@@@ 9  999PPTZT LpLc^9PPP> bib5|09PPAIA L 9PPiqi J 9PP1t9PP$t`80 00MXXejeJLc^OJ44 ((0@@^hh|>@@QJ80(9 @T  @V9 @T`tL^c^(0(dp  $30< 9 @ 6 @, 9  0 |  JQJTd(0( 6 B{}{t| > Jeje%/%ht!|(1?1x|<owo(hp*!)! 6 tx B  3Px|X 6 TZT  ((((AIA߿uTahomag ER KQltjMBMjM6(k=4MuTahomag ER KQltmBMm6(ImW>##'/b @@@@@@@|~000000P?G}]f=17I6g W>)@@uTahomaUCommandButton3,UCommandButton4 &,LCommandButton5 ,LCommandButton6;  , ^GCommandButton7 , ^GCommandButton8 & , CommandButton9],  CommandButton10; ], >A CommandButton11],>A CommandButton12 &],M CommandButton13,m CommandButton14;   Microsoft Forms 2.0 FormEmbedded Object9qVERSION 5.00 Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} Util Caption = "UserForm1" ClientHeight = 6495 ClientLeft = 45 ClientTop = 330 ClientWidth = 8550 StartUpPosition = 1 'CenterOwner VBFrameAbout C0Gހ11fsoBUD@@@@@+-1thngq^h=17I6̈́W>@@@@@@(HHideN @Tahoma R KQltоBMо6(rk   jV^lw}]f=17edfrOW>edfPfD'J=C6<}]f=17#&)rQlW>136vj!86w@@EPExYb}]f=17=>ASE+̈́W>Ʊ/B(/b @@@*0*C:E|}]f=17klmI6W>PfD'J=@@@6@6XDL}]f=17#&)rOW>klm~r!86w@@@@$$$090 edflw}]f=17=>ArQlW>87;Ʊ/B(/b @@@@@@@@888+0+߲,0,=17}]f=17klmSE+̈́W>PfD'J=@@@@@PPP8@8߲:@:xYb}]f=17'))I6W>~r!86w@@@@@@ IEI|}]f=178*rOW>##'/b @@@@@@@|~000000P?G}]f=17I6g W>)@@@@@@@+-1thngq^h=17I6̈́W>@@@@@@000ppp=17^h=17I6W>6w@@@@PRV888``` jV^^h=178*rOW>'J@@@HHH``````(((IEI|^h=17I6g W>)@@HHH```000@@@P?GxYbI6̈́W>@.15HHHPPP(((hhhthngq|xYbC6<##'vW>@=```HHH```"%##'}W>0, v|NRFKNR67XVY```HHHPPPRSU)+-}W>67ch v|NRFKNRFK```HHH```PRV)+-}W>67ch }NR"TYOhhh000JKN)+-}W>@=mr }TY"TY000JKN'))vW>@= v|000IEI#&)qW>FK }000CEH#&)lW>FK |~|~ |~BCF#&)g W>NR CEHPRV xxz=>A#&)Z W>NR mor=>A##'8*NRPRVmor_ad''3,#:2%A4&C4&D4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&CNRPRVPRVCEH+-1RDaF;U2(:2%AD.Y\8xpAtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtC2%A#''*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*|~|~PRVj]oC:E7+FM2dpAJOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOON,#:6HCEH|~lh~F;U4&DM2dh>JOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOON,#:B imormorPRVvhF;U4&DM2dh>JOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOJ,#:B")_adCEHCEHvhF;U4&DM2dh>JOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOJ,#:B"+)vhF;U4&CD.Yh>~GOOOOOOOOOOOOOOOOOOOOOOOOO~G2%AB"++*_ad_adyuF;U2%AD.Ya:}~GOOOOOOOOOOOOOOOOOOOOyE2%AB"++++PRVƽxRDa2%AD.Ya:}~GOOOOOOOOOOOOOOOtC2%AB"+++++_adƽxRDa2%AD.Ya:}yEOOOOOOOOOOpA2%AB"++++++ XXXxRDa7+FD.Y\8xyEOOOOOh>4&CB"+++++++#&)BCF|~ ```,#:2%A2%A,#:D.Y\8xyEh>4&CB"+++++++*#'IEI000 XVY"%2%A2%A2%AB"++++++++*#'*BJk*NPPP@@@@@@```000 B"++++++++++$Jk{{{{dOa{ PPP888```13617C''3B"++++++++++;*B{{{{{{>k```hhhzsHHHPPP17CIKXB"+++++++++)K*B{{{{{u*7Y[y "-8kppp##'17Cr~B"+++++++++$D*B{{{{{Su+:H:M`si0@P>ShHHHXXX000RSU17CB"+++++++++ i$*B{{{{{3S[y|[yppp17C''3B"+++++++++;*B{{{{dOa{CZp (k.1517CIKXB"++++++++)K)>{{{{>k~+:Hs&0 ppp88817COa{B"++++++++$K)>{{{u*7YPPP@@@| "-8+:HH`x&3@ (&3@17CMUfnuB"++++++++ i136)>{{{Su000iH`x&3@&3@+:HLf|HHHJKN17CjzMUf+-1B"++++++++K##')>{{{3S(((PPP888PPP17C6AOXVYB"+++++++)39eXVY)>{{d888PPP+-117CSYnyuB"+++++++$ek136)>{{ooo|~17CjzMUfB"+++++++ i##')>{ 17CpppJKN17CSYnnuRSUB"++++++)39e.1517Cr~JPYB"++++++$ekppp)+-17C``sssi;XX)+-B"++++K:==NxxA``JKNB"+++)*7Y=``,@@B"+++$ek:@@s_[``B"+++!u 0000AHHnRuxx'))B"+++K ```hhh1HH)88@@@JKNB"++)*7Y ```000-@@n%33kmm@@@B"++$TZ ```___"(((88L_ss[Jxx AHHB"++!u ```ppp@@@ [``:@@:@@dhhHHH@@@#&)B"++L ```888000000IEIB"+))/Z@@@```:@@"((:@@JPP ``` 888XXXB"+$TZXXX@@@ "##Kxxssi;XX ```PPPB"+!uOUU?cc:PP(((```#&)B"+LFpp@@@000hhhCEHB"))/Zw>``@@@HHH B"$TZPPP144d-@@@@@000B"!u```.@@|*00@@@PPP#&)B"Lpppppp)88dW6@@@@@000@@@BCFB!u)/ZhhhRXX >``LLLL-@@kpp@@@|~D iTZ@@@000pppDK@@@((( @@@K;:@@"((:@@JPP000888000000*N;zKxxssi;XX000XXX888 SYn)/ZQXXQ:PP000@@@Fpp000```PPP188w3NNOOO000000```PRVRXXd*<<TTT000 pppxxx.@@|*00PPP 000pppppp)88dW6@@000@@@000```RXX >``LLLL-@@kppXXX000HHHPPPPRVxxx000HHH @@@hhh000000000000_ad@@@(((hhh000ppp@@@((((((@@@HHH:@@"((:@@JPP (((PPP _ad000zKxxssi;XX000``````QXXQ:PP```YYY000_ad000@@@Fpp hhh@@@@@@#((w&;;@@@@@@@@@@@@@@@_adRXXd*<<.@@|*00)88dW6@@RXX >``LLLL-@@kpp,(Simple Decision Tree v1.2{@Tahoma((c) 2008 - Thomas Seyller tseyller@sdg.com http://decisiontree.sourceforge.net Made for the Sta000ppp=17^h=17I6W>6w@@@@PRVnford Decisions and Ethics Center http://decision.stanford.edu Open sourced for the Decision Professionals Network http://www.decisionprofessionals.net "g 5Tahoma\(LTo request other licensing, please contact Thomas Seyller (tseyller@sdg.com)5@Cambria888``` jV^^h=178*rOW>'J@@@i11FpFz?a0Gހ101foEHi13KSi*WJO0Gހ10Gހ1NewNodeNewNodeNodeSearchNodeSearchValuesValuesBranchesBranchesDeletionDeletionGrowGrowChangeNodeTypeChangeNodeTypeComplementaryProbaComplementaryProbaShrinkShrinkFlipTreeFlipTreeMNOPID="{53117131-C33F-4009-80DB-EC0C6FEFD883}" Document=ThisWorkbook/&H00000000 Document=Sheet1/&H00000000 Module=General Package={AC9F2F90-E877-11CE-9F68-00AA00574A4F} BaseClass=Util BaseC      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrsuvwxyz{|}~t      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~i14GIPi*WJO0Gހ101i18JMi*WJO0101CompObjsx<lass=About Module=Testing Module=Construction BaseClass=Help Module=NewNode Module=NodeSearch Module=Values Module=Branches Module=Deletion Module=Grow Module=ChangeNodeType Module=ComplementaryProba Module=Shrink Module=FlipTree HelpFile="" Name="DecisionTreeNurseryToolbar" HelpContextID="0" VersionCompatible32="393222000" CMG="4D4F9869A8B2ACB2ACB2ACB2AC" DPB="9A984F209D219D219D" GC="E7E532F732097E0A7E0A81" [Host Extender Info] &H00000001={3832D640-CF90-11CF-8E43-00A0C911005A};VBE;&H00000000 [Workspace] ThisWorkbook=0, 0, 0, 0, C Sheet1=0, 0, 0, 0, C General=0, 0, 0, 0, C Util=0, 0, 0, 0, C, 66, 87, 742, 438, About=0, 0, 0, 0, C, 22, 29, 698, 380, Z Testing=0, 0, 0, 0, C Construction=0, 0, 0, 0, C Help=0, 0, 0, 0, C, 44, 58, 720, 409, NewNode=0, 0, 0, 0, C NodeSearch=0, 0, 0, 0, C Values=0, 0, 0, 0, C Branches=0, 0, 0, 0, C Deletion=88, 116, 764, 467, Grow=0, 0, 0, 0, C ChangeNodeType=0, 0, 0, 0, C ComplementaryProba=0, 0, 0, 0, C Shrink=0, 0, 0, 0, C FlipTree=    Jm# !"$%&'()*+,-./0123456789:;<=>?@ABCEFGHInLMNOPQRSTDV`XYZ[\]^_Uabcdefghijklopqrstuwz{|}~ x110, 145, 686, 566,   Oh+'0 PXx Decision Tree NurseryThomas Seyller8A decision tree add-in for Excel 2006, Thomas Seyller wvanhoomMicrosoft Excel@n@dЀ1defgWilvnop՜.+,D՜.+,%     !"#$a1()*+,-./0>3456789:;<=&?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]cdefqhijklmnop^zstuvwxyb{|}~DocumentSummaryInformation8CompObjm TypeInfoVer = 22 End $  }K7>R KQDBTahoma @ @CommandButton  ma pFz?aMicrosoft Forms 2.0 FormEmbedded ObjectForms.MultiPage.19q18   5a$ Licensing4Full Text of GPL v3.0DonationTab3f\oLNxCompObjnfhoOQ(CompObjnf\oRTCompObjnCompObjDVaVBFrameHelp Y1Py61Tab4Tab55Tahomab5$H  }5a$ , #LicensingTextBox5,$!Page2ox35,,!DonationTextBoxx5,  i*WJOMicrosoft Forms 2.0 FormEmbedded Object Forms.Form.19qX@H@4k"Open Source software such as this one requires a lot of time and effort. If you have benefitted from this tool and would like to support research in the area of decision anlaysis, please consider making a donation to the Stanford Decisions and Ethics Center. To do this, please visit http://decisiontree.sourceforge.net.5Tahomab5$H }T5",$xTextBox3 i*WJOMicrosoft Forms 2.0 FormEmbedded Object Forms.Form.19q$H }T5"80(FullTextGPLTextBox` i*WJOMicrosoft Forms 2.0 FormEmbedded Object Forms.Form.19q@H4k"Simple Decision Tree http://decisiontree.sourceforge.net Copyright (C) 2008 Thomas Seyller Thi!@H4k" GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .5Tahomab5s program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . *************************************************************** *** Additional permission under GNU GPL version 3 section 7 *** *************************************************************** As a special exception to the terms and conditions of GPL version 3.0, Thomas Seyller hereby grants you the rights to link the macros to functions calls that normally comes with the standard built-in libraries provided by your office application programs.5Tahomab5$H }T5",$TextBox11Hide this window$ Image1a(2PLabel1a1(24Label3a1O( #9MultiPage1wi(2Label4a 9HHH``````(((IEI|^h=17I6g W>)@@HHH```000@@@P?GxYbI6̈́W>@.15HHHPPP(((hhhthngq|xYbC6<##'vW>@=```HHH```"%##'}W>0, v|NRFKNR67XVY```HHHPPPRSU)+-}W>67ch v|NRFKNRFK```HHH```PRV)+-}W>67ch }NR"TYOhhh000JKN)+-}W>@=mr }TY"TY000JKN'))vW>@= v|000IEI#&)qW>FK }000CEH#&)lW>FK |~|~ |~BCF#&)g W>NR CEHPRV xxz=>A#&)Z W>NR mor=>A##'8*NRPRVmor_ad''3,#:2%A4&C4&D4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&C4&CNRPRVPRVCEH+-1RDaF;U2(:2%AD.Y\8xpAtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtCtC2%A#''*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*'*|~|~PRVj]oC:E7+FM2dpAJOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOON,#:6HCEH|~lh~F;U4&DM2dh>JOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOON,#:B imormorPRVvhF;U4&DM2dh>JOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOJ,#:B")_adCEHCEHvhF;U4&DM2dh>JOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOJ,#:B"+)vhF;U4&CD.Yh>~GOOOOOOOOOOOOOOOOOOOOOOOOO~G2%AB"++*_ad_adyuF;U2%AD.Ya:}~GOOOOOOOOOOOOOOOOOOOOyE2%AB"++++PRVƽxRDa2%AD.Ya:}~GOOOOOOOOOOOOOOOtC2%AB"+++++_adƽxRDa2%AD.Ya:}yEOOOOOOOOOOpA2%AB"++++++ XXXxRDa7+FD.Y\8xyEOOOOOh>4&CB"+++++++#&)BCF|~ ```,#:2%A2%A,#:D.Y\8xyEh>4&CB"+++++++*#'IEI000 XVY"%2%A2%A2%AB"++++++++*#'*BJk*NPPP@@@@@@```000 B"++++++++++$Jk{{{{dOa{ PPP888```13617C''3B"++++++++++;*B{{{{{{>k```hhhzsHHHPPP17CIKXB"+++++++++)K*B{{{{{u*7Y[y "-8kppp##'17Cr~B"+++++++++$D*B{{{{{Su+:H:M`si0@P>ShHHHXXX000RSU17CB"+++++++++ i$*B{{{{{3S[y|[yppp17C''3B"+++++++++;*B{{{{dOa{CZp (k.1517CIKXB"++++++++)K)>{{{{>k~+:Hs&0 ppp88817COa{B"++++++++$K)>{{{u*7YPPP@@@| "-8+:HH`x&3@ (&3@17CMUfnuB"++++++++ i136)>{{{Su000iH`x&3@&3@+:HLf|HHHJKN17CjzMUf+-1B"++++++++K##')>{{{3S(((PPP888PPP17C6AOXVYB"+++++++)39eXVY)>{{d888PPP+-117CSYnyuB"+++++++$ek136)>{{ooo|~17CjzMUfB"+++++++ i##')>{ 17CpppJKN17CSYnnuRSUB"++++++)39e.1517Cr~JPYB"++++++$ekppp)+-17C``sssi;XX)+-B"++++K:==NxxA``JKNB"+++)*7Y=``,@@B"+++$ek:@@s_[``B"+++!u 0000AHHnRuxx'))B"+++K ```hhh1HH)88@@@JKNB"++)*7Y ```000-@@n%33kmm@@@B"++$TZ ```___"(((88L_ss[Jxx AHHB"++!u ```ppp@@@ [``:@@:@@dhhHHH@@@#&)B"++L ```888000000IEIB"+))/Z@@@```:@@"((:@@JPP ``` 888XXXB"+$TZXXX@@@ "##Kxxssi;XX ```PPPB"+!uOUU?cc:PP(((```#&)B"+LFpp@@@000hhhCEHB"))/Zw>``@@@HHH B"$TZPPP144d-@@@@@000B"!u```.@@|*00@@@PPP#&)B"Lpppppp)88dW6@@@@@000@@@BCFB!u)/ZhhhRXX >``LLLL-@@kpp@@@|~D iTZ@@@000pppDK@@@((( @@@K;:@@"((:@@JPP000888000000*N;zKxxssi;XX000XXX888 SYn)/ZQXXQ:PP000@@@Fpp000```PPP188w3NNOOO000000```PRVRXXd*<<TTT000 pppxxx.@@|*00PPP 000pppppp)88dW6@@000@@@000```RXX >``LLLL-@@kppXXX000HHHPPPPRVxxx000HHH @@@hhh000000000000_ad@@@(((hhh000ppp@@@((((((@@@HHH:@@"((:@@JPP (((PPP _ad000zKxxssi;XX000``````QXXQ:PP```YYY000_ad000@@@Fpp hhh@@@@@@#((w&;;@@@@@@@@@@@@@@@_adRXXd*<<.@@|*00)88dW6@@RXX >``LLLL-@@kpp(HHide # @TahomaafoX@i03^pFz?a1@1fx|c   ` !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_abdefghijklmnopqrstuvwyz{|}~  ;@V$ !"#%&'()*+,-./0123456789:<=>?ATBLDEFGHIJKMNOPQRSUj]XYZ[\h_`abcdefgWilvnopqrstukwxyz{}~o[]i05gi*WJO11i06\bi*WJO11i09i*WJO1@1i10_ai*WJO@1@1i11}i*WJO@1@1i12`dxi*WJO@1@1i13si*WJO@1@1i65ceni*WJO@1@1i72fii*WJO@1@1CompObjsxv_`Root Entry FԀ גO@Workbook_VBA_PROJECT_CUR"<~1P1VBAW ~11Tahoma$ Image103   AH pFz?aMicrosoft Forms 2.0 FormEmbedded ObjectForms.MultiPage.19qP1h$P $ $*+Dec+UncChangeGrow!ePrune! ProbabilitiesU-Cufohki77 n``@1@1i80jl n``@1@1CompObjnfompi67 n``@1@1i70oq n``@1@1CompObjnforui56 n``@1@1i58tv n``@1@1CompObjnfowzi50 n``@1@1i52y{ n``@1@1CompObjnfo|i44 n``@1@1i46~ n``@1@1CompObjnfoi38 n``@1@1i40 n``@1@1CompObjnfoi32 n``1@1i34 n``@1@1CompObjnfo i28 n``11i63 n``11CompObjnfoi18 n``11i22 n``11CompObjnf,o!CompObjprvelShrinkelFlipTab3Tab4Tab5Tab6Tab7Tab8Tab9Tab10Tab115Tahomab1$H QN}*  $!Page1ab15,$!Page2ab15,$ !Page3ab15,$ !Page4ab15,$ !Page5ab15,$ !Page6ab15,$ #Page7ab15,$A!Page8ab15,$H!Page9ab15,  i*WJOMicrosoft Forms 2.0 FormEmbedded Object Forms.Form.19q$H Q }*T$foi74 n``@1@1CompObjpM#Frame193$P#Frame203E i*WJOMicrosoft Forms 2.0 FormEmbedded Object Forms.Form.19q$H G}*T$C#Frame163$F#Frame173E i*WJOMicrosoft Forms 2.0 FormEmbfAo9CompObj7pf4o1CompObj/pfXoNhedded Object Forms.Form.19q$H ;}*T$8#Frame133$:#Frame143E i*WJOMicrosoft Forms 2.0 FormEmbedded Object Forms.Form.19q$H 5}*T$2#Frame113$4#Frame123CompObjLpfIoFCompObjDpfkoidCompObjgpfdo]CompObj[pfoxg  i*WJOMicrosoft Forms 2.0 FormEmbedded Object Forms.Form.19q$H /}*T$,#Frame903$.#Frame103E i*WJOMicrosoft Forms 2.0 FormEmbedded Object Forms.Form.19qCompObjvpfsopCompObjnpfoCompObjpfo|CompObjpfot     "#$%&'()*+-.023568:;<=>?@BCEGHJKMOPQRSTUVWYZ\^_`abcefhjlmoqrtuwyz{|}~$H )}*T$&#Frame753$(#Frame853E i*WJOMicrosoft Forms 2.0 FormEmbedded Object Forms.Form.19q$H #}*T$ #Frame553E$"#Frame653CompObjpfoCompObjp i*WJOMicrosoft Forms 2.0 FormEmbedded Object Forms.Form.19q(You can use this function as long as the cell you have selected is a leaf of an already existing tree. Or, as long as you have not constructed any tree on the worksheet yet.k5Tahomab1$H @}*$#Frame463(=2Label153foCompObjpfodCompObjpfo $?#Frame153 i*WJOMicrosoft Forms 2.0 FormEmbedded Object Forms.Form.19q$H  }*T$#Frame1x3$#Frame2x3 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19qCompObjpfo`CompObjpfoCompObjpCompObjZap(_This function flips the tree on the current sheet and places it in a new sheet in tabular form.&O5Tahomab1@H  N}(What does it do?R KQDBTahomaX(N2Label203$J#Frame183 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19qh(UUse on any tree that has two or three layers of uncertainty and two or three branches per uncertainty node. The tree must be symmetrical. All nodes in each layer must have the same number of branches. - Flipping a tree that has two layers of uncertainty will result in two tables. The first representing the original tree, and the second representing the flipped tree, with probabilities calculated per Bayes Theorm. - Flipping a three layer tree will result in six tables, each representing one possible order of the three layers of uncertainty. & 5Tahomab1DH  Q}(When can I use it?`R KQDBTahoma0(Q2Label213 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19qp(^This function allows you to shrink the size of the tree to make it easier to view large trees..&O5Tahomab1@H  D}(What does it do?R KQDBTahoma0(D2Label173 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19q(On any sheet that has a tree, this function can be used to remove rows from the excel sheet that the tree is not using. This will shrink the height of the tree. - information to the left or right of the tree in the sheet may be lost so be sure that there is nothing on the page you need besides the tree&g 5Tahomab1DH  G}(How can I use it?`R KQDBTahoma0(G2Label183 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19qp(]This function allows you to specify the u-curve that will be used to solve the decision tree..&O5Tahomab1@H  9}(What does it do?R KQDBTahoma0(92Label133 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19qH(8For a risk neutral decision-maker, select u(x) = x. For a decision-maker who follows the delta property but is not necessarily risk neutral, choose u(x) = 1 +/- exp(-gamma*x). Then specify the value of gamma. You can enter a numeric value, or leave the value of gamma blank - in which case the program will look for a cell called gamma in your spreadsheet and use its value. You can also type a formula, such as 1/rho; in this case, the program will use that formula based on the value of the cell called rho in your spreadsheet.&g 5Tahomab1DH  ;}(How can I use it?`R KQDBTahoma0(;2hLabel143 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19qd(RIf the cell you selected contains a branch probability, it will make it equal to 1 minus the some of all other branch probabilities. If the cell you selected already contains such a formula, it will freeze that cell into its numeric value instead of a formula.&5Tahomab1@H  3}( What does it do?R KQDBTahoma0(32Label113 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19qD(3The cell you selected must be a branch probability..&5Tahomab1DH  5}(When can I use it?`R KQDBTahoma0(52dLabel123 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19q(tDepending on the cell you selected, this function removes a branch of the tree or a node and all of its descendants.&{5Tahomab1@H  -}(What does it do?R KQDBTahoma0(-2Label953 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19ql(ZYou can use this function as long as: - the cell you have selected is a leaf of the tree. - or as long as the cell you have selected is located right next to an existing node, in case you want to delete this node and all of its descendants.t&q5Tahomab1DH  /}( When can I use it?`R KQDBTahoma0(/2Label103 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19q\(IIt adds a branch to an existing node - uncertainty node or decision node.om)&{5Tahomab1@H  '}(What does it do?R KQDBTahoma0('2|Label753 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19q(You can use this function as long as the cell you have selected is located right next to an existing node (decision node or uncertainty node).&#5Tahomab1DH  )}(qWhen can I use it?`R KQDBTahoma0()2Label853 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19q(You can use this function as long as the cell you have selected is located right next to an existing node (decision node or uncertainty node).&#5Tahomab1DH  !}(qWhen can I use it?R KQDBTahoma0(!2Label553 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19qT(CIt changes an uncertainty node into a decision node, or vice versa.U&{5Tahomab1@H  #}(What does it do?R KQDBTahoma0(#2tLabel653 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19qD(4It creates an uncertainty node in the selected cell.&5Tahomab1@H  }(What does it do?R KQDBTahoma0(2dLabel4x3 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19q(You can use this function as long as the cell you have selected is a leaf of an already existing tree. Or, as long as you have not constructed any tree on the worksheet yet.&5Tahomab1DH  @}(DWhen can I use it?`R KQDBTahoma0(@2Label163 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19q@(0It creates a decision node in the selected cell.&5Tahomab1@H  }(What does it do?R KQDBTahoma0(2`Label1x3 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19q(You can use this function as long as the cell you have selected is a leaf of an already existing tree. Or, as long as you have not constructed any tree on the worksheet yet.&5Tahomab1DH  }(DWhen can I use it?`R KQDBTahoma0(2Label2x3 n``Microsoft Forms 2.0 FrameEmbedded ObjectForms.Frame.19ql(YFor trees with two or three layers, and two or three branches per node, flipping the tree will reverse the order of the layers in the tree and recalculate the branch probabilities based on Bayes Theorem. The trees must be semetrical for this function to work. Each node must have the same number of branches as the other nodes in that layer..tkg 5Tahomab1DH  K}!How can I use it?R KQDTahoma0(K2Label193@ @CommandButton1kHide this window( #9MultiPage1wi Microsoft Forms 2.0 FormEmbedded Object9q PXt | JWalk & Associates' Sheet1  Worksheets(S[thinkcellXlWorkbookDoNotDelete唀뜏౅瑈䡉㱴瑈䠪ᅴ瑈㌄譃ࡅ壝栶䛦ㄥꢽ诿ࡍ삅䆉甈诜ࡅ읦܀ࡘᇫ䖋昈悃߫䖋茈ࡠ樀堁쉝譕凬뜏౅噓疋圐ͪ䡙䶉觼༞Ꞅ  F!Microsoft Office Excel WorksheetBiff8Excel.Sheet.89q