Back to Home

Inference For Linear Model


  • Code to find Confidence Interval and Prediction Interval for a Linear Model
    • Input: Predictor variable x; Response variable y; New values for predictor variable new_x; Confidence Level CL (in percentage without percentage symbol).
    • CI_And_PI_For_LinearModel.R

  • Code to find Confidence Interval for the slope of a linear model.
    • Input: Predictor variable x; Response variable y; Confidence level CL (in percentage without percentage symbol).
    • CI_For_Slope.R

  • Code to carryout Hypothesis Testing for the population correlation coefficient (rho).
    • Input: Predictor variable x; Response variable y; Alternative hypothesis H1 ('less', 'greater', or 'two.sided'); Level of significance alpha.
    • HT_For_Corr.R

  • Code to carryout Hypothesis Testing for the Slope of a Linear Model.
    • Input: Predictor variable x; Response variable y; Alternative hypothesis H1 ('less', 'greater', or 'two.sided').
    • HT_For_Slope.R



Back to Home