Skip to content

Instantly share code, notes, and snippets.

View sheilla21-sudo's full-sized avatar

sheilla21-sudo

  • Joined Apr 2, 2026
View GitHub Profile
@sheilla21-sudo
sheilla21-sudo / 23106010050_Tugas7_0403
Last active April 2, 2026 13:00
Script R untuk menghitung ukuran akurasi peramalan (ME, MAD, MSE, MPE, MAPE) berdasarkan data pada Tabel 2.2
setwd("C:/Users/Sheilla Khairunnisa/Documents/analisis runtun data")
getwd()
#yt = observed value
#yhat = forecast
yt = c(47,46,51,44,54,47,52,45,50,51,
49,41,48,50,51,55,52,53,48,52)
yhat = c(51.1,52.9,48.8,48.1,49.7,47.5,51.2,53.1,54.4,51.2,
53.3,46.5,53.1,52.1,46.8,47.7,45.4,47.1,51.8,45.8)