7 Replies Latest reply on Apr 7, 2015 1:02 PM by Konrad Kwiatek

    R integration:multiple regression analysis

    Tomomi Otaki

      Hi,

      I would like to know how to achieve multiple regression analysis.

      (Sorry , Im not familiar with R)


      e.g. Multiple regression analysisitem for itemA,B,C.

         itemA:1,2,3
         itemB:4,5,6
         itemC:2、2、3


      I tried the script below;

           SCRIPT_REAL

           (

             "TEST <- data.frame(cbind(.arg1, .arg2, .arg3));

              (TEST.lm <- lm(.arg1~., data=TEST))",

             SUM([itemA]), SUM([itemB]), SUM([itemC])

           )

       

      After excecute the script, an error has occured :"Error in formula.default(object, env = baseenv()) : invalid formula".

       

      Please point out what is wrong with my script and tell me any correct script.

       

      Thanks