開始使用免費開始

t 檢定的輸出

在第 3 章中,你已經對 lengthadult 進行了 t 檢定。現在,請把這個 t 檢定的輸出儲存為 abttest,並從輸出物件中擷取與顯示多個元素。

abaloneKeep 資料集已為你載入。

本練習屬於課程

給 SAS 使用者的 R

檢視課程

練習說明

  • 使用 t.test() 以 adult 分組對 length 進行 t 檢定,並將輸出儲存為 abttest
  • 顯示 abttest t 檢定輸出中的 statisticparameterconf.int 元素。

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Perform pooled t-test of length by adult, save as abttest
abttest <- t.test(___ ~ ___, data = ___, 
                  ___)

# Display statistic, parameter and conf.int from abttest
___
___
___
編輯並執行程式碼