• Tidak ada hasil yang ditemukan

Analisa Pengaruh IG Kuliner Kota Batam

N/A
N/A
Protected

Academic year: 2023

Membagikan "Analisa Pengaruh IG Kuliner Kota Batam"

Copied!
6
0
0

Teks penuh

(1)

Analisa Pengaruh IG Kuliner Kota Batam

Fendi Hidayat 9/16/2020 library(readxl)

KKB <- read_excel("~/Downloads/KKB.xlsx")

# 1. Melakukan Regresi

ModelKKB = lm(Y~X, data = KKB)

# UJI KLASIK

# 1. uji normalitas

# 1.a. Dengan QQ Plot library(devtools)

## Loading required package: usethis library(usethis)

library(ryouready) library(ggplot2)

qqresidual = qqnorm_spss(ModelKKB$residuals, method = 1, ties.method =

"average")

ggplot(qqresidual)

(2)

# Jika p-value > 0.05 maka berdistribusi normal

ks.test(ModelKKB$residuals, ecdf(ModelKKB$residuals))

## Warning in ks.test(ModelKKB$residuals, ecdf(ModelKKB$residuals)):

ties should

## not be present for the Kolmogorov-Smirnov test

##

## One-sample Kolmogorov-Smirnov test

##

## data: ModelKKB$residuals

## D = 0.037037, p-value = 0.9999

## alternative hypothesis: two-sided

# 2. UJI Multikolinieritas

#olsrr::ols_vif_tol(ModelKKB)

# 3. UJI AUTOKORELASI DURBIN WATSON

#install.packages("lmtest") #install package untuk menggunakan fungsi durbinwatson

# : Jika nilai p-value > 0,05 (nilai alpha) maka tidak terjadi autokorelasi

lmtest::dwtest(ModelKKB)

(3)

##

## Durbin-Watson test

##

## data: ModelKKB

## DW = 1.6173, p-value = 0.04014

## alternative hypothesis: true autocorrelation is greater than 0

# 4. UJI HETEROKEDASTISITAS

# Jika nilai p-value > 0,05 (nilai alpha) maka tidak terjadi heterokedastisitas

lmtest::bgtest(ModelKKB)

##

## Breusch-Godfrey test for serial correlation of order up to 1

##

## data: ModelKKB

## LM test = 2.3451, df = 1, p-value = 0.1257 summary(ModelKKB)

##

## Call:

## lm(formula = Y ~ X, data = KKB)

##

## Residuals:

## Min 1Q Median 3Q Max

## -11.834 -1.944 0.239 2.721 6.575

##

## Coefficients:

## Estimate Std. Error t value Pr(>|t|)

## (Intercept) 3.3661 3.3594 1.002 0.319

## X 0.5183 0.0673 7.701 3.33e-11 ***

## ---

## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

##

## Residual standard error: 3.494 on 79 degrees of freedom

## Multiple R-squared: 0.4288, Adjusted R-squared: 0.4215

## F-statistic: 59.3 on 1 and 79 DF, p-value: 3.332e-11

(4)
(5)

46 30

55 33

43 29

45 29

58 40

45 24

55 36

50 27

57 30

56 37

53 37

49 29

45 27

43 24

44 22

53 19

55 31

46 30

47 31

59 32

50 29

42 26

57 37

45 27

56 34

57 32

47 29

46 24

47 25

48 27

47 28

48 30

48 27

57 31

47 24

55 25

35 24

45 27

52 22

60 35

(6)

58 33

44 27

42 28

59 40

54 35

50 32

51 27

49 34

50 29

48 29

48 30

54 32

49 26

45 31

46 32

56 31

51 27

60 28

45 24

48 30

53 32

55 31

36 24

43 24

52 29

47 23

46 22

44 25

45 25

46 25

38 23

41 23

45 30

49 27

60 40

42 28

57 37

53 28

56 37

(7)

54 25

Referensi

Dokumen terkait

Results of questionnaire analysis obtained from 697 high school students of class XII IPA from 48 classes, 17 schools in 5 regencies / cities Lampung Province and

PEARLs, Problems and Politics: Exploring Findings From Two Teaching and Learning Projects in Indigenous Australian Studies at The University of Queensland Elizabeth Mackinlay1and