I'm not sure if this is your problem, because I can't see the whole script, but if you create a column with a formula in it then you need to add the command dt << run formulas; where dt refers to your data table, before you do any analyses. The problem is that the formula is evaluated in the background and the next platform executes before the column has finished evaluating. When I have scritps that run one part at a time but fail as a whole script most of the time it is due to this run formula issue. The other problem I encounter is that the wrong data table is current, so an explicit current data table(dt); is sometimes required. Hope that helps. Cheers Gunter
I'm attaching below a simple script that does the kind of thing you are trying to do. It works for me in 8.0.1. Assuming you can get it to run, then try to modify it step by step until it is the exact script you want.
dt = New Table( "My Table", New Column( "A" ), New Column( "B" ) ); colA = Column( "A" ); colB = Column( "B" ); dt << addrows( 5 );
For( i = 1, i < 6, i++, colA(i) = Random Normal(); colB(i) = Random Normal(); );
dt << Bivariate( X( "A" ), Y( "B" ) );
NOTE: In the For loop, you MUST replace the round brackets in colA(i) and colB(i) with square brackets for correct syntax. I just cannot do that in the code here because it gets truncated as you have already seen.