(20S and 21S) Simple Logistic Regression
|
06-03-2017, 05:30 PM
Post: #1
|
|||
|
|||
(20S and 21S) Simple Logistic Regression
This program attempts to fit a simple logistic curve of data (X, Y) to the equation:
y = 1/(A + B*e^(-x)) By the following transformations: X’ = e^(-X) Y’ = 1/Y And performing linear regression analysis on X’ and Y’. Note that the data point which includes Y = 0 is not allowed. The keystrokes for the HP 20S and HP 21S are slightly different. Each program will be shown separately. Input: Initialize the data: XEQ A For each data point: x, [INPUT], y, XEQ B Calculate the parameters: XEQ C. B is shown first, then A. HP 20S Program: Simple Logistic Regression Code:
HP 21S Program: Simple Logistic Regression Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)