Error in Formula: ')' after function expected

Dear all,


I am a beginning user of Statistica

I was following the tutorial on ( When trying to run the workspace which has been shared as example in the tutorial an error appears in the 'Transformations of Variables' node.


"Error in formula: ')' after function expected"


However I haven't modifief the expression and it seems also correct by me, I have tried to search documentation and forum Q&A but cannot find the solution to this error.


Can anyone elaborate on this issue? Kind regards,


Image icon error.png114.83 KB
Image icon additional_setting.png66.03 KB
Image icon region_setting.png55.98 KB


Hi Gaia,

Thanks for the fast reply. Both the Regression and Classification don't work.
The expressions is:

FlameTemperatureLagged=lag("Flame temperature (°F)",-10)

I didn't modify this expression, so it could have something to do with the way this version compiles this expression? I added a screenshot in attachment.

Thanks in advance
Kind regards,

kaizhi.zhang - Feb 20, 2019 - 4:05am ::


I have downloaded the zip file and both RegressionPrediction and ClassificationPrediction protocols ran OK for me. Can you post the expression that does not work for you? Which workflow?


Gaia Paolini - Feb 20, 2019 - 3:32am ::
+ Add a Comment

(2) Answers