logistic regression

logistic regression

am 10.04.2008 22:01:15 von Neda-k

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

Re: logistic regression

am 10.04.2008 23:53:26 von Ronald Raygun

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

Re: logistic regression

am 11.04.2008 02:21:35 von nc

On Apr 10, 1:01 pm, Neda-k wrote:
>
> 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

Re: logistic regression

am 11.04.2008 19:43:19 von Neda-k

On Apr 11, 2:21 am, NC wrote:
> On Apr 10, 1:01 pm, Neda-k wrote:
>
>
>
> > 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

Re: logistic regression

am 13.04.2008 21:30:19 von nc

On Apr 11, 10:43 am, Neda-k wrote:
> On Apr 11, 2:21 am, NC 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:

http://devzone.zend.com/article/1021
http://devzone.zend.com/article/1022
http://devzone.zend.com/article/1023
http://devzone.zend.com/article/1024

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

http://www.amazon.com/exec/obidos/ASIN/067232704X

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