Answer below question

0 comments

  • Description of the data set is provided in page 161 (problem 12 in chapter 8). Dataset “EX0812.txt” is posted.

(Note: If you use infile and input statement to read in data, put “$” after the variable sex to indicate that the values are characters. E.g.

input id x1 x2 y clrzne sex $ 😉

  • Fit the regression model of Y (change in refraction error) on X1, sex and X1*sex. Write down the fitted regression model.
  • Based on the fitted model in (a), write down the regression models of Y on X1 for males and females separately. What is the difference of intercepts in these two models? What is the difference of slopes in these two models? Which do they correspond to the estimated coefficient in model (a), respectively?
  • Test whether the straight lines for males and females coincide (i.e., are the same) with alpha=0.1. State your null hypothesis in terms of the coefficients. Provide you SAS code and output for conducting the analysis. Figure out your F value and p value based on output, and then draw a conclusion.
  • Test whether the straight lines for males and females are parallel with alpha=0.1. State your null hypothesis in terms of the coefficients. Provide you SAS code and output for conducting the analysis. Figure out your F value and p value based on output, and then draw a conclusion.
  • Based on your answers to questions (c) and (d), comment on differences and similarities in the change in refraction-baseline refractive error relationship for males and females.1.
    Description of the data set is provided in page
    161 (problem 12 in chapter 8). Dataset “EX0812.txt” is posted.

    (Note: If you use infile and input statement to read in data, put “$”
    after the variable sex to indicate that the values are characters. E.g.

    input id x1
    x2 y clrzne sex $ 😉

    a.
    Fit the regression model of Y (change in
    refraction error) on X1, sex and X1*sex. Write down the fitted regression
    model.

    b.
    Based on the fitted model in (a), write down the
    regression models of Y on X1 for males and females separately. What is the
    difference of intercepts in these two models? What is the difference of slopes
    in these two models? Which do they correspond to the estimated coefficient in
    model (a), respectively?

    c.
    Test whether the straight lines for males and
    females coincide (i.e., are the same) with alpha=0.1. State your null
    hypothesis in terms of the coefficients. Provide you SAS code and output for
    conducting the analysis. Figure out your F value and p value based on output,
    and then draw a conclusion.

    d.
    Test whether the straight lines for males and
    females are parallel with alpha=0.1. State your null hypothesis in terms of the
    coefficients. Provide you SAS code and output for conducting the analysis.
    Figure out your F value and p value based on output, and then draw a
    conclusion.

    e.
    Based on your answers to questions (c) and (d),
    comment on differences and similarities in the change in refraction-baseline
    refractive error relationship for males and females.

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}