Goto Lab: #0 #1 #2 #3 #4 #5 #6 #7 #Midterm

Homework 7


Solutions:



Exercise 20
To do this in Windows you should have followed these steps:
  • Bring the data to the work window.
  • Click on Statistics-Analysis of Variance-Fixed effects-Create formula-logarea~species.
  • You should get something like
    species Residuals
    SS 15.7856.37
    df 1 292
    R.S.E.0.4393
  • And your ANOVA table should be like this
    d.f. S.S. M.S. F-value Pr(F)
    spgroup71.670.231.240.27
    Residuals 285 54.70 0.19
  • To get the precise value of your F, you could do 1-pf(1.24,7,285) in S-Plus.
  • Notice that the answer to question A is Sp=0.4318 =) Sp^2=0.1919, and this was the value of the Estimated pooled variance.
  • This was direct with the information you had from the anova analysis in the computer, but you could have done it by hand:
  • (((127-1)*(0.4979^2))+((44-1)*(0.4235^2))+((24-1)*(0.3955^2))+ ((41-1)*(0.3183^2))+((18-1)*(0.3111^2))+((16-1)*(0.4649^2))+ ((11-1)*(0.2963^2))+((7-1)*(0.3242^2))+((6-1)*(0.5842^2)))/((127-1)+ (44-1)+(24-1)+(41-1)+(18-1)+(16-1)+(11-1)+(7-1)+(6-1))

    Exercise 21
  • This problem just requires to apply the formula on Pg 116.
  • 95%CI=Estimate +/- t(343)*SE = Estimate +/- 1.96*SE
  • p-value=2*(Pr(Estimate/SE)) = 2*(1-pt(Estimate/SE,df))
  • Your table should, therefore, be something like
    Estimate S.E. Lower Bound Upper Bound t-stat p-value
    NR50-NN859.61.27.24811.9528about 0
    RR50-NR50 0.61.2-1.7522.9520.50.617
    NR40-NR50 2.81.20.4485.1522.3330.02
    NR50 lopro-NR50-2.61.2-4.952-0.2482.16660.0308
    NN85-NP5.31.32.7527.8484.076about 0


    Exercise 23
  • Bring the data from the file to the work window
  • Change to factor your data. You can do this Choosing Data-Change Data Type-Column type=factor for "bonegrp."
  • Statistics-Analysis of Variance-Fixed effects-Create Formula=Oxygen~bonegrp.
  • You should obtain
    species Residuals
    SS 6.062.97
    df 11240
    R.S.E.0.2725
    d.f. S.S. M.S. F-value Pr(F)
    spgroup116.060.557.429.72e-007
    Residuals 402.970.07
  • You can do a nice plot by following these steps: A) Click in Graph-Multipanel-Boxplot B) Choose Column x=factor variable (bonegrp) and Column y=oxygen.

    Exercise 17
  • g=(-7.347/6)+(-7.368/6)+(-7.418/6)+(-7.487/6)+(-7.563/6)+(-7.568/6)+ (8.214/3)+(8.272/3)+(8.297/3)=0.8025
  • Sp=0.4381 (from problem 20)
  • SD(g)=Sp*sqrt((1/(127*36))+(1/(44*36))+(1/(24*36))+(1/(41*36)) +(1/(18*36))+(1/(16*36))+(1/(11*36))+(1/(11*9))+(1/(7*9))+(1/(6*9)))
  • SD(g)=0.4381*0.2301783=0.10
  • t(.975,285)=1.968
  • CI(95%)=[0.8025 +/- 1.968*0.10]=[0.6057,1]

    Exercise 20
    You can solve this exercise in different ways. Here is one.
  • Bring the code from your file to the work window
  • Change to factor your variable code
  • Recode your variable if you decide to group regardless of the causes of death. You can do this with the command Data-Recode
  • Statistics-Analysis of Variance-Fixed Effects-Formula=Volume~Code.
  • Your results (if you did it this way) should be like:
    Code Residuals
    SS 44960.5114187.1
    df 238
    R.S.E.54.817
    d.f. S.S. M.S. F-value Pr(F)
    spgroup244960.522480.257.4810.0018
    Residuals 38114187.13004.92
  • This 0.0018 indicates a low probability that this results happen by chance. There are clear differences (especially when you use t-tests) between homosexual and heterosexual male and between heterosexual male and female, and there is no apparent difference between homosexual male and heterosexual female.
  • This is a non-random sample of the population, which hinders us from a general extrapolation to the population. Cause-effect relationships can't be drawn either.
  • You can get a nice plot by following the steps in exercise 23.