Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index

Hello guys, I’m having some problems with the VAR and STDEV function, when
executing these lines of code. The average is well calculated but the
remaining two return very low, unrealistic and equal values

To add to a bad situation, I can’t execute the function CHISQINV as stated
in the second code box below. It gives out the error:

BASIC runtime error.
An exception occurred
Message: .

Any help is deeply appreciated!


====================== CODE BLOCK 1 ======================oRange =
xSheet.getCellRangeByPosition(7, 1,  7, rangeLim)'Media (funciona)
average = oRange.computeFunction(
print average'Variancia (ver)
variance = oRange.computeFunction(
print variance'StdDev (ver)
stdDev = oRange.computeFunction(
print stdDev

====================== CODE BLOCK 2 ======================
function CHISQINV (erro, degree)        dim oFunction as variant
        oFunction = createUnoService("")
        dim aArgument(1 to 2) as variant
        dim result as double    aArgument(1)=erro
        aArgument(2)=degree     result = oFunction.callFunction("CHISQ.INV",
aArgument())    CHISQINV = resultend function

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.