<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<br>hi
<br>I am trying to use the add-on package <b><i>fdim</i></b> to calculate
fractal dimesionality of some time series data.
<p>I keep getting an error - trying to run simple example from the help
pages
<p><b><i>Error in if (MaxDiff > Chi2) { : missing value where logical needed</i></b>
<p>when I set the debug option of the function <b><i>slopeopt()</i></b>
<p>I get the following read out...
<p><b><i>[1] "###############################"</i></b>
<br><b><i>[1] "X="</i></b>
<br><b><i> [,1]
[,2]</i></b>
<br><b><i> [1,] -1 -1.000000</i></b>
<br><b><i> [2,] -2 -2.321928</i></b>
<br><b><i> [3,] -3 -3.459432</i></b>
<br><b><i> [4,] -4 -4.523562</i></b>
<br><b><i> [5,] -5 -5.491853</i></b>
<br><b><i> [6,] -6 -6.475733</i></b>
<br><b><i> [7,] -7 -7.426265</i></b>
<br><b><i> [8,] -8 -8.317413</i></b>
<br><b><i> [9,] -9 -8.982994</i></b>
<br><b><i>[1] "Chi2="</i></b>
<br><b><i>[1] 1.642374</i></b>
<br><b><i>[1] "Residual (Ej)="</i></b>
<br><b><i>[1] 0 0 0 0 0 0 0 0 0</i></b>
<br><b><i>[1] "(Ej-EM)*(1/ESS)*(Ej-EM)="</i></b>
<br><b><i>[1] NaN NaN NaN NaN NaN NaN NaN NaN NaN</i></b>
<br><b><i>[1] "MaxDiff="</i></b>
<br><b><i>[1] NaN</i></b><b><i></i></b>
<p>something is clearly amiss.
<p>Has anyone encountered/solved this problem ?
<p>Does anyone have any decent code for fractal analysis of time series
?
<p>Any help would be much appreciated.
<br>
<p>cheers,
<p>Pat</html>