logistic regression

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Neda-k

    logistic regression

    Hello,
    Has anyone done logistic regression in php?
    I need to do that but cannot find any build in functions or similar.

    Please help.

    /nina
  • Ronald Raygun

    #2
    Re: logistic regression



    Neda-k wrote:
    Hello,
    Has anyone done logistic regression in php?
    I need to do that but cannot find any build in functions or similar.
    >
    Please help.
    >
    /nina
    Lookup numpy

    Comment

    • NC

      #3
      Re: logistic regression

      On Apr 10, 1:01 pm, Neda-k <neda.ker...@gm ail.comwrote:
      >
      Has anyone done logistic regression in php?
      Not to my knowledge. In fact, I know of only two people who have
      done multiple regression in PHP...
      I need to do that but cannot find any build in functions
      or similar.
      You won't; nothing of the sort exists. So you either have to write
      your own functions (possibly by porting from Fortran or C) or wrap
      some previously written C code into a PHP extension.

      Cheers,
      NC

      Comment

      • Neda-k

        #4
        Re: logistic regression

        On Apr 11, 2:21 am, NC <n...@iname.com wrote:
        On Apr 10, 1:01 pm, Neda-k <neda.ker...@gm ail.comwrote:
        >
        >
        >
        Has anyone done logistic regression in php?
        >
        Not to my knowledge. In fact, I know of only two people who have
        done multiple regression in PHP...
        >
        I need to do that but cannot find any build in functions
        or similar.
        >
        You won't; nothing of the sort exists. So you either have to write
        your own functions (possibly by porting from Fortran or C) or wrap
        some previously written C code into a PHP extension.
        >
        Cheers,
        NC
        Hello again,
        Sorry if the questions sounds stupid, but how do I wrap or port code
        from somewhere else?

        /nina

        Comment

        • NC

          #5
          Re: logistic regression

          On Apr 11, 10:43 am, Neda-k <neda.ker...@gm ail.comwrote:
          On Apr 11, 2:21 am, NC <n...@iname.com wrote:
          >
          you either have to write your own functions (possibly by porting
          from Fortran or C) or wrap some previously written C code into
          a PHP extension.
          >
          Sorry if the questions sounds stupid, but how do I wrap or port code
          from somewhere else?
          To wrap previously written C code into a PHP extension, you need to
          be able to program in C. Sara Golemon has written a fairly detailed
          four-part introduction into writing PHP extentsions:






          She has also written a book titled "Extending and Embedding PHP":



          Essentially, wrapping a C library into a PHP extension makes the
          library's functionality available to PHP.

          As to porting, you need to understand the language you are porting
          from. You keep asking yourself two questions: (1) what does this
          piece of code do in the original code?, and (2) how do I write an
          equivalent piece of code in my target language?

          Cheers,
          NC

          Comment

          Working...