View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
REM[_2_] REM[_2_] is offline
external usenet poster
 
Posts: 9
Default LinEst using arrays

Hi,
I am trying to get the following to work,

varr = Application.LinEst(ArrayY, Application.Power( _
ArrayX, Array(1, 2)), True, 0)

but I get a type mismatch error.

The arrays are dimensioned as Variant and both redimensioned with:
ReDim ArrayX(1 To NoofVals)

Also, can I assign the regression coeffficient,R2, to a variable using
something similar to the above?
Many thanks,
Rod