BaşlayınÜcretsiz Başlayın

Calculating the sample mean

The late_shipments dataset contains supply chain data on the delivery of medical supplies. Each row represents one delivery of a part. The late columns denotes whether or not the part was delivered late. A value of "Yes" means that the part was delivered late, and a value of "No" means the part was delivered on time.

Let's begin our analysis by calculating a point estimate (sample statistic), namely the proportion of late shipments.

late_shipments is available; dplyr is loaded.

Bu egzersiz

Hypothesis Testing in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Use View() to view the late_shipments dataset.
  • Calculate the proportion of late shipments in the sample. That is, the mean cases where the late column is "Yes".

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# View the late_shipments dataset
View(late_shipments)

# Calculate the proportion of late shipments
late_prop_samp <- ___



# See the results
late_prop_samp
Kodu Düzenle ve Çalıştır