linearreg_ci_pin(X, Y, xp, cl)

Performs a linear regression analysis using samples X and Y and then computes a confidence interval for the prediction of the response variable Y at point xp using confidence level cl.


See also linearreg linearreg_ci_slo linearreg_ci_mea 


Example


X=(3, 4, 6, 6, 7, 8)

( 3 4 6 6 7 8 )


Y=(4, 5, 6, 6, 7, 8)

( 4 5 6 6 7 8 )


linearreg_ci_pin(X, Y, 6, .95)


Linear Regression.

Confidence interval for the prediction of the response variable.

xp : 6.0

Confidence level : 0.95 (95%)

Results:

yp : 6.25

Interval  : (5.49821726879176, 7.00178273120824 )

Margin of error : 0.7517827312082402