[GENERAL INFORMATION]
Function Name=Biphasic
Brief Description=Biphasic Sigmoidal Dose Response (7 parameters logistic equation). 
Function Source=fgroup.Response2
Function Type=Built-in
Function Form=Expression
Number Of Parameters=7
Number Of Independent Variables=1
Number Of Dependent Variables=1


[FITTING PARAMETERS]
Naming Method=User-Defined
Names=Amin, Amax1, Amax2, x0_1, x0_2, h1, h2
Meanings=bottom, first and second top asymptotes, first and second medians, slopes
Lower Bounds=--(I,Off),--(I,Off),--(I,Off),--(I,Off),--(I,Off),--(I,Off),--(I,Off)
Upper Bounds=--(I,Off),--(I,Off),--(I,Off),--(I,Off),--(I,Off),--(I,Off),--(I,Off)
Number Of Significant Digits=


[FORMULA]

y = Amin + (Amax1 - Amin) / (1 + 10^((x - x0_1) * h1)) + (Amax2 - Amin) / (1 + 10^((x0_2 - x) * h2))


[CONSTRAINTS]


[Parameters Initialization]

sort(x_y_curve);
//smooth(x_y_curve, 2);	 
Amin = min( y_data );
Amax1 =yatxmin( x_y_curve );
Amax2 = yatxmax( x_y_curve );
x0_1 =  xatymin( x_y_curve )-0.1*abs(xatymin( x_y_curve ));
x0_2 =  xatymin( x_y_curve )+0.1*abs(xatymin( x_y_curve ));
h1 = 0.9;
h2 = 1.1;


[CONSTANTS]


[INITIALIZATIONS]



[AFTER FITTING]



[INDEPENDENT VARIABLES]
x=


[DEPENDENT VARIABLES]
y=


[CONTROLS]
General Linear Constraints=Off
Initialization Scripts=Off
Scripts After Fitting=Off
Number Of Duplicates=N/A
Duplicate Offset=N/A
Duplicate Unit=N/A

