install.packages(c("tidyverse","psych","corrplot","ggplot2","readxl","seminr","car","moments"))
## Installing packages into '/cloud/lib/x86_64-pc-linux-gnu-library/4.6'
## (as 'lib' is unspecified)
Menginstal package yang dibutuhkan dalam analisis.
library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr 1.2.1 ✔ readr 2.2.0
## ✔ forcats 1.0.1 ✔ stringr 1.6.0
## ✔ ggplot2 4.0.3 ✔ tibble 3.3.1
## ✔ lubridate 1.9.5 ✔ tidyr 1.3.2
## ✔ purrr 1.2.2
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag() masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(psych)
##
## Attaching package: 'psych'
## The following objects are masked from 'package:ggplot2':
##
## %+%, alpha
library(corrplot)
## corrplot 0.95 loaded
library(ggplot2)
library(readxl)
library(seminr)
##
## Attaching package: 'seminr'
## The following object is masked from 'package:purrr':
##
## rerun
library(car)
## Loading required package: carData
##
## Attaching package: 'car'
## The following object is masked from 'package:psych':
##
## logit
## The following object is masked from 'package:dplyr':
##
## recode
## The following object is masked from 'package:purrr':
##
## some
library(moments)
Memanggil library yang diperlukan selama proses analisis data.
data <- read_excel("PI_Shopee_Video_Survey_Data.xlsx")
## New names:
## • `` -> `...37`
## • `` -> `...38`
Membaca dataset penelitian dari file Excel ke dalam R.
data <- data %>% select(where(~ !all(is.na(.))))
Menghapus kolom yang seluruh nilainya kosong (NA) agar data lebih bersih dan siap dianalisis.
num_data <- data %>% select(where(is.numeric))
describe(num_data)
## vars
## Shopee Video loads quickly without long waiting time. 1
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.) 2
## Shopee Video runs smoothly without disruptions such as lag or stuttering. 3
## I can easily find and watch the videos I want on Shopee. 4
## When I like, comment, or share a video link, Shopee Video responds quickly. 5
## Content in Shopee Video explains product details clearly. 6
## The information presented in Shopee Video is consistent from start to finish. 7
## I believe that product claims in Shopee Video are accurate. 8
## Shopee Video provides complete information about the products being sold. 9
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material). 10
## I find the Shopee Video feature easy to use and understand. 11
## Shopee Video helps me understand how a product works or is used. 12
## I tend to trust sellers in Shopee Video when they recommend products. 13
## I feel emotionally connected to sellers in Shopee Video. 14
## When watching Shopee Video, I feel as if I’m interacting directly with the seller. 15
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting). 16
## I often interact on Shopee Video by giving likes. 17
## I often interact on Shopee Video by leaving comments. 18
## I often interact on Shopee Video by sharing video links with others. 19
## I immediately buy a product after seeing content in Shopee Video. 20
## I feel encouraged to purchase a product after watching Shopee Video. 21
## I consider purchasing a product after seeing it in Shopee Video. 22
## I will look for more information about a product I saw in Shopee Video before purchasing it. 23
## n
## Shopee Video loads quickly without long waiting time. 300
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.) 300
## Shopee Video runs smoothly without disruptions such as lag or stuttering. 300
## I can easily find and watch the videos I want on Shopee. 300
## When I like, comment, or share a video link, Shopee Video responds quickly. 300
## Content in Shopee Video explains product details clearly. 300
## The information presented in Shopee Video is consistent from start to finish. 300
## I believe that product claims in Shopee Video are accurate. 300
## Shopee Video provides complete information about the products being sold. 300
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material). 300
## I find the Shopee Video feature easy to use and understand. 300
## Shopee Video helps me understand how a product works or is used. 300
## I tend to trust sellers in Shopee Video when they recommend products. 300
## I feel emotionally connected to sellers in Shopee Video. 300
## When watching Shopee Video, I feel as if I’m interacting directly with the seller. 300
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting). 300
## I often interact on Shopee Video by giving likes. 300
## I often interact on Shopee Video by leaving comments. 300
## I often interact on Shopee Video by sharing video links with others. 300
## I immediately buy a product after seeing content in Shopee Video. 300
## I feel encouraged to purchase a product after watching Shopee Video. 300
## I consider purchasing a product after seeing it in Shopee Video. 300
## I will look for more information about a product I saw in Shopee Video before purchasing it. 300
## mean
## Shopee Video loads quickly without long waiting time. 5.16
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.) 4.91
## Shopee Video runs smoothly without disruptions such as lag or stuttering. 5.00
## I can easily find and watch the videos I want on Shopee. 5.30
## When I like, comment, or share a video link, Shopee Video responds quickly. 5.13
## Content in Shopee Video explains product details clearly. 5.31
## The information presented in Shopee Video is consistent from start to finish. 5.19
## I believe that product claims in Shopee Video are accurate. 4.94
## Shopee Video provides complete information about the products being sold. 5.24
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material). 5.89
## I find the Shopee Video feature easy to use and understand. 5.84
## Shopee Video helps me understand how a product works or is used. 5.77
## I tend to trust sellers in Shopee Video when they recommend products. 5.30
## I feel emotionally connected to sellers in Shopee Video. 4.25
## When watching Shopee Video, I feel as if I’m interacting directly with the seller. 4.62
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting). 5.19
## I often interact on Shopee Video by giving likes. 3.85
## I often interact on Shopee Video by leaving comments. 3.50
## I often interact on Shopee Video by sharing video links with others. 3.74
## I immediately buy a product after seeing content in Shopee Video. 4.34
## I feel encouraged to purchase a product after watching Shopee Video. 4.98
## I consider purchasing a product after seeing it in Shopee Video. 5.38
## I will look for more information about a product I saw in Shopee Video before purchasing it. 5.86
## sd
## Shopee Video loads quickly without long waiting time. 1.37
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.) 1.54
## Shopee Video runs smoothly without disruptions such as lag or stuttering. 1.50
## I can easily find and watch the videos I want on Shopee. 1.47
## When I like, comment, or share a video link, Shopee Video responds quickly. 1.45
## Content in Shopee Video explains product details clearly. 1.25
## The information presented in Shopee Video is consistent from start to finish. 1.26
## I believe that product claims in Shopee Video are accurate. 1.33
## Shopee Video provides complete information about the products being sold. 1.29
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material). 1.30
## I find the Shopee Video feature easy to use and understand. 1.09
## Shopee Video helps me understand how a product works or is used. 1.15
## I tend to trust sellers in Shopee Video when they recommend products. 1.37
## I feel emotionally connected to sellers in Shopee Video. 1.61
## When watching Shopee Video, I feel as if I’m interacting directly with the seller. 1.54
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting). 1.57
## I often interact on Shopee Video by giving likes. 1.97
## I often interact on Shopee Video by leaving comments. 1.90
## I often interact on Shopee Video by sharing video links with others. 1.92
## I immediately buy a product after seeing content in Shopee Video. 1.53
## I feel encouraged to purchase a product after watching Shopee Video. 1.48
## I consider purchasing a product after seeing it in Shopee Video. 1.38
## I will look for more information about a product I saw in Shopee Video before purchasing it. 1.25
## median
## Shopee Video loads quickly without long waiting time. 5.0
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.) 5.0
## Shopee Video runs smoothly without disruptions such as lag or stuttering. 5.0
## I can easily find and watch the videos I want on Shopee. 6.0
## When I like, comment, or share a video link, Shopee Video responds quickly. 5.0
## Content in Shopee Video explains product details clearly. 5.0
## The information presented in Shopee Video is consistent from start to finish. 5.0
## I believe that product claims in Shopee Video are accurate. 5.0
## Shopee Video provides complete information about the products being sold. 5.0
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material). 6.0
## I find the Shopee Video feature easy to use and understand. 6.0
## Shopee Video helps me understand how a product works or is used. 6.0
## I tend to trust sellers in Shopee Video when they recommend products. 6.0
## I feel emotionally connected to sellers in Shopee Video. 4.0
## When watching Shopee Video, I feel as if I’m interacting directly with the seller. 5.0
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting). 6.0
## I often interact on Shopee Video by giving likes. 4.0
## I often interact on Shopee Video by leaving comments. 3.0
## I often interact on Shopee Video by sharing video links with others. 4.0
## I immediately buy a product after seeing content in Shopee Video. 4.5
## I feel encouraged to purchase a product after watching Shopee Video. 5.0
## I consider purchasing a product after seeing it in Shopee Video. 6.0
## I will look for more information about a product I saw in Shopee Video before purchasing it. 6.0
## trimmed
## Shopee Video loads quickly without long waiting time. 5.27
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.) 5.03
## Shopee Video runs smoothly without disruptions such as lag or stuttering. 5.12
## I can easily find and watch the videos I want on Shopee. 5.47
## When I like, comment, or share a video link, Shopee Video responds quickly. 5.26
## Content in Shopee Video explains product details clearly. 5.41
## The information presented in Shopee Video is consistent from start to finish. 5.28
## I believe that product claims in Shopee Video are accurate. 4.97
## Shopee Video provides complete information about the products being sold. 5.34
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material). 6.12
## I find the Shopee Video feature easy to use and understand. 6.00
## Shopee Video helps me understand how a product works or is used. 5.93
## I tend to trust sellers in Shopee Video when they recommend products. 5.44
## I feel emotionally connected to sellers in Shopee Video. 4.30
## When watching Shopee Video, I feel as if I’m interacting directly with the seller. 4.73
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting). 5.38
## I often interact on Shopee Video by giving likes. 3.83
## I often interact on Shopee Video by leaving comments. 3.44
## I often interact on Shopee Video by sharing video links with others. 3.72
## I immediately buy a product after seeing content in Shopee Video. 4.42
## I feel encouraged to purchase a product after watching Shopee Video. 5.12
## I consider purchasing a product after seeing it in Shopee Video. 5.56
## I will look for more information about a product I saw in Shopee Video before purchasing it. 6.08
## mad
## Shopee Video loads quickly without long waiting time. 1.48
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.) 1.48
## Shopee Video runs smoothly without disruptions such as lag or stuttering. 1.48
## I can easily find and watch the videos I want on Shopee. 1.48
## When I like, comment, or share a video link, Shopee Video responds quickly. 1.48
## Content in Shopee Video explains product details clearly. 1.48
## The information presented in Shopee Video is consistent from start to finish. 1.48
## I believe that product claims in Shopee Video are accurate. 1.48
## Shopee Video provides complete information about the products being sold. 1.48
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material). 1.48
## I find the Shopee Video feature easy to use and understand. 1.48
## Shopee Video helps me understand how a product works or is used. 1.48
## I tend to trust sellers in Shopee Video when they recommend products. 1.48
## I feel emotionally connected to sellers in Shopee Video. 1.48
## When watching Shopee Video, I feel as if I’m interacting directly with the seller. 1.48
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting). 1.48
## I often interact on Shopee Video by giving likes. 2.97
## I often interact on Shopee Video by leaving comments. 2.97
## I often interact on Shopee Video by sharing video links with others. 2.97
## I immediately buy a product after seeing content in Shopee Video. 2.22
## I feel encouraged to purchase a product after watching Shopee Video. 1.48
## I consider purchasing a product after seeing it in Shopee Video. 1.48
## I will look for more information about a product I saw in Shopee Video before purchasing it. 1.48
## min
## Shopee Video loads quickly without long waiting time. 1
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.) 1
## Shopee Video runs smoothly without disruptions such as lag or stuttering. 1
## I can easily find and watch the videos I want on Shopee. 1
## When I like, comment, or share a video link, Shopee Video responds quickly. 1
## Content in Shopee Video explains product details clearly. 1
## The information presented in Shopee Video is consistent from start to finish. 1
## I believe that product claims in Shopee Video are accurate. 1
## Shopee Video provides complete information about the products being sold. 1
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material). 1
## I find the Shopee Video feature easy to use and understand. 1
## Shopee Video helps me understand how a product works or is used. 1
## I tend to trust sellers in Shopee Video when they recommend products. 1
## I feel emotionally connected to sellers in Shopee Video. 1
## When watching Shopee Video, I feel as if I’m interacting directly with the seller. 1
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting). 1
## I often interact on Shopee Video by giving likes. 1
## I often interact on Shopee Video by leaving comments. 1
## I often interact on Shopee Video by sharing video links with others. 1
## I immediately buy a product after seeing content in Shopee Video. 1
## I feel encouraged to purchase a product after watching Shopee Video. 1
## I consider purchasing a product after seeing it in Shopee Video. 1
## I will look for more information about a product I saw in Shopee Video before purchasing it. 1
## max
## Shopee Video loads quickly without long waiting time. 7
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.) 7
## Shopee Video runs smoothly without disruptions such as lag or stuttering. 7
## I can easily find and watch the videos I want on Shopee. 7
## When I like, comment, or share a video link, Shopee Video responds quickly. 7
## Content in Shopee Video explains product details clearly. 7
## The information presented in Shopee Video is consistent from start to finish. 7
## I believe that product claims in Shopee Video are accurate. 7
## Shopee Video provides complete information about the products being sold. 7
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material). 7
## I find the Shopee Video feature easy to use and understand. 7
## Shopee Video helps me understand how a product works or is used. 7
## I tend to trust sellers in Shopee Video when they recommend products. 7
## I feel emotionally connected to sellers in Shopee Video. 7
## When watching Shopee Video, I feel as if I’m interacting directly with the seller. 7
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting). 7
## I often interact on Shopee Video by giving likes. 7
## I often interact on Shopee Video by leaving comments. 7
## I often interact on Shopee Video by sharing video links with others. 7
## I immediately buy a product after seeing content in Shopee Video. 7
## I feel encouraged to purchase a product after watching Shopee Video. 7
## I consider purchasing a product after seeing it in Shopee Video. 7
## I will look for more information about a product I saw in Shopee Video before purchasing it. 7
## range
## Shopee Video loads quickly without long waiting time. 6
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.) 6
## Shopee Video runs smoothly without disruptions such as lag or stuttering. 6
## I can easily find and watch the videos I want on Shopee. 6
## When I like, comment, or share a video link, Shopee Video responds quickly. 6
## Content in Shopee Video explains product details clearly. 6
## The information presented in Shopee Video is consistent from start to finish. 6
## I believe that product claims in Shopee Video are accurate. 6
## Shopee Video provides complete information about the products being sold. 6
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material). 6
## I find the Shopee Video feature easy to use and understand. 6
## Shopee Video helps me understand how a product works or is used. 6
## I tend to trust sellers in Shopee Video when they recommend products. 6
## I feel emotionally connected to sellers in Shopee Video. 6
## When watching Shopee Video, I feel as if I’m interacting directly with the seller. 6
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting). 6
## I often interact on Shopee Video by giving likes. 6
## I often interact on Shopee Video by leaving comments. 6
## I often interact on Shopee Video by sharing video links with others. 6
## I immediately buy a product after seeing content in Shopee Video. 6
## I feel encouraged to purchase a product after watching Shopee Video. 6
## I consider purchasing a product after seeing it in Shopee Video. 6
## I will look for more information about a product I saw in Shopee Video before purchasing it. 6
## skew
## Shopee Video loads quickly without long waiting time. -0.80
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.) -0.60
## Shopee Video runs smoothly without disruptions such as lag or stuttering. -0.64
## I can easily find and watch the videos I want on Shopee. -0.94
## When I like, comment, or share a video link, Shopee Video responds quickly. -0.74
## Content in Shopee Video explains product details clearly. -0.78
## The information presented in Shopee Video is consistent from start to finish. -0.57
## I believe that product claims in Shopee Video are accurate. -0.37
## Shopee Video provides complete information about the products being sold. -0.61
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material). -1.48
## I find the Shopee Video feature easy to use and understand. -1.20
## Shopee Video helps me understand how a product works or is used. -1.37
## I tend to trust sellers in Shopee Video when they recommend products. -0.80
## I feel emotionally connected to sellers in Shopee Video. -0.24
## When watching Shopee Video, I feel as if I’m interacting directly with the seller. -0.55
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting). -0.90
## I often interact on Shopee Video by giving likes. -0.03
## I often interact on Shopee Video by leaving comments. 0.13
## I often interact on Shopee Video by sharing video links with others. 0.02
## I immediately buy a product after seeing content in Shopee Video. -0.34
## I feel encouraged to purchase a product after watching Shopee Video. -0.80
## I consider purchasing a product after seeing it in Shopee Video. -1.18
## I will look for more information about a product I saw in Shopee Video before purchasing it. -1.48
## kurtosis
## Shopee Video loads quickly without long waiting time. 0.36
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.) -0.29
## Shopee Video runs smoothly without disruptions such as lag or stuttering. -0.22
## I can easily find and watch the videos I want on Shopee. 0.52
## When I like, comment, or share a video link, Shopee Video responds quickly. 0.29
## Content in Shopee Video explains product details clearly. 0.61
## The information presented in Shopee Video is consistent from start to finish. 0.08
## I believe that product claims in Shopee Video are accurate. -0.28
## Shopee Video provides complete information about the products being sold. 0.00
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material). 2.11
## I find the Shopee Video feature easy to use and understand. 1.94
## Shopee Video helps me understand how a product works or is used. 2.93
## I tend to trust sellers in Shopee Video when they recommend products. 0.37
## I feel emotionally connected to sellers in Shopee Video. -0.83
## When watching Shopee Video, I feel as if I’m interacting directly with the seller. -0.40
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting). 0.09
## I often interact on Shopee Video by giving likes. -1.23
## I often interact on Shopee Video by leaving comments. -1.23
## I often interact on Shopee Video by sharing video links with others. -1.25
## I immediately buy a product after seeing content in Shopee Video. -0.43
## I feel encouraged to purchase a product after watching Shopee Video. 0.23
## I consider purchasing a product after seeing it in Shopee Video. 1.44
## I will look for more information about a product I saw in Shopee Video before purchasing it. 2.39
## se
## Shopee Video loads quickly without long waiting time. 0.08
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.) 0.09
## Shopee Video runs smoothly without disruptions such as lag or stuttering. 0.09
## I can easily find and watch the videos I want on Shopee. 0.08
## When I like, comment, or share a video link, Shopee Video responds quickly. 0.08
## Content in Shopee Video explains product details clearly. 0.07
## The information presented in Shopee Video is consistent from start to finish. 0.07
## I believe that product claims in Shopee Video are accurate. 0.08
## Shopee Video provides complete information about the products being sold. 0.07
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material). 0.08
## I find the Shopee Video feature easy to use and understand. 0.06
## Shopee Video helps me understand how a product works or is used. 0.07
## I tend to trust sellers in Shopee Video when they recommend products. 0.08
## I feel emotionally connected to sellers in Shopee Video. 0.09
## When watching Shopee Video, I feel as if I’m interacting directly with the seller. 0.09
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting). 0.09
## I often interact on Shopee Video by giving likes. 0.11
## I often interact on Shopee Video by leaving comments. 0.11
## I often interact on Shopee Video by sharing video links with others. 0.11
## I immediately buy a product after seeing content in Shopee Video. 0.09
## I feel encouraged to purchase a product after watching Shopee Video. 0.09
## I consider purchasing a product after seeing it in Shopee Video. 0.08
## I will look for more information about a product I saw in Shopee Video before purchasing it. 0.07
Memilih variabel numerik dan menampilkan statistik deskriptif seperti mean, standar deviasi, nilai minimum, dan maksimum.
sapply(data, function(x)
sum(is.na(x))/length(x)*100)
## Timestamp
## 8.256881
## Email Address
## 8.256881
## Gender
## 8.256881
## Age
## 8.256881
## Occupation
## 8.256881
## How long have you been a Shopee user?
## 8.256881
## After viewing the screenshot above, have you ever used/opened the Shopee Video feature at least once?
## 8.256881
## What is your main purpose in using Shopee Video?
## 8.256881
## What product category do you most often purchase through Shopee Video?
## 8.256881
## How familiar are you with the Shopee Video features?
## 8.256881
## How often do you use Shopee Video in a week?
## 8.256881
## How much time do you usually spend using Shopee Video each time?
## 8.256881
## Have you ever made a purchase after watching content in Shopee Video?
## 8.256881
## Shopee Video loads quickly without long waiting time.
## 8.256881
## Shopee Video rarely experiences technical issues when I use it.\r\n(Issues include app not opening, videos not running smoothly, or features not responding.)
## 8.256881
## Shopee Video runs smoothly without disruptions such as lag or stuttering.
## 8.256881
## I can easily find and watch the videos I want on Shopee.
## 8.256881
## When I like, comment, or share a video link, Shopee Video responds quickly.
## 8.256881
## Content in Shopee Video explains product details clearly.
## 8.256881
## The information presented in Shopee Video is consistent from start to finish.
## 8.256881
## I believe that product claims in Shopee Video are accurate.
## 8.256881
## Shopee Video provides complete information about the products being sold.
## 8.256881
## Shopee Video is free from inappropriate content (e.g., ethnicity, religion, violence, or offensive material).
## 8.256881
## I find the Shopee Video feature easy to use and understand.
## 8.256881
## Shopee Video helps me understand how a product works or is used.
## 8.256881
## I tend to trust sellers in Shopee Video when they recommend products.
## 8.256881
## I feel emotionally connected to sellers in Shopee Video.
## 8.256881
## When watching Shopee Video, I feel as if I’m interacting directly with the seller.
## 8.256881
## I trust a product more after engaging with Shopee Video (e.g., liking or commenting).
## 8.256881
## I often interact on Shopee Video by giving likes.
## 8.256881
## I often interact on Shopee Video by leaving comments.
## 8.256881
## I often interact on Shopee Video by sharing video links with others.
## 8.256881
## I immediately buy a product after seeing content in Shopee Video.
## 8.256881
## I feel encouraged to purchase a product after watching Shopee Video.
## 8.256881
## I consider purchasing a product after seeing it in Shopee Video.
## 8.256881
## I will look for more information about a product I saw in Shopee Video before purchasing it.
## 8.256881
## ...37
## 96.024465
## ...38
## 99.082569
Menghitung persentase missing value pada setiap variabel dalam dataset.
ggplot(data, aes(x = `Shopee Video loads quickly without long waiting time.`)) +
geom_histogram(bins = 10, fill = "skyblue", color = "black") +
theme_minimal()
## Warning: Removed 27 rows containing non-finite outside the scale range
## (`stat_bin()`).
Membuat histogram untuk melihat distribusi jawaban responden pada salah
satu indikator penelitian.
data_long <- num_data %>%
pivot_longer(cols = everything()) %>%
drop_na()
Mengubah data ke format long agar dapat divisualisasikan dalam satu boxplot.
ggplot(data_long, aes(x = name, y = value)) +
geom_boxplot(fill = "lightblue") +
theme_minimal() +
theme(axis.text.x = element_text(angle = 90))
Membuat boxplot untuk melihat persebaran data dan mendeteksi
outlier.
colnames(num_data) <- c(
"KS1","KS2","KS3",
"KV1","KV2","KV3",
"MB1","MB2","MB3"
)
Mengubah nama variabel menjadi lebih singkat agar mempermudah proses analisis.
cor_matrix <- cor(num_data, use = "complete.obs")
Menghitung matriks korelasi antar variabel numerik.
corrplot(cor_matrix,
method = "color",
type = "upper",
tl.cex = 0.8,
tl.col = "black",
tl.srt = 45)
Menampilkan visualisasi korelasi antar variabel menggunakan
corrplot.
normalitas <- data.frame(
Variabel = names(num_data),
P_Value = sapply(num_data, function(x){
if(length(unique(x)) > 2){
shapiro.test(x)$p.value
} else {
NA
}
})
)
Melakukan uji normalitas Shapiro-Wilk pada setiap variabel numerik.
normalitas
## Variabel P_Value
## 1 KS1 3.693408e-13
## 2 KS2 1.232228e-11
## 3 KS3 4.880367e-12
## 4 KV1 1.902128e-14
## 5 KV2 9.420935e-13
## 6 KV3 3.299452e-13
## 7 MB1 5.315226e-12
## 8 MB2 1.219477e-10
## 9 MB3 2.322522e-12
## 10 <NA> 2.060136e-19
## 11 <NA> 4.712677e-17
## 12 <NA> 1.633225e-17
## 13 <NA> 2.324970e-13
## 14 <NA> 1.559604e-09
## 15 <NA> 3.788737e-11
## 16 <NA> 1.190159e-14
## 17 <NA> 7.032847e-12
## 18 <NA> 2.823065e-12
## 19 <NA> 1.055686e-11
## 20 <NA> 2.070788e-09
## 21 <NA> 6.788405e-13
## 22 <NA> 7.159787e-16
## 23 <NA> 7.046418e-19
Menampilkan hasil uji normalitas berupa nilai p-value setiap variabel.
sem_data <- data %>%
select(
KS1 = `Shopee Video loads quickly without long waiting time.`,
KS2 = `Shopee Video runs smoothly without disruptions such as lag or stuttering.`,
KS3 = `I find the Shopee Video feature easy to use and understand.`,
KV1 = `I can easily find and watch the videos I want on Shopee.`,
KV2 = `Content in Shopee Video explains product details clearly.`,
KV3 = `I find the Shopee Video feature easy to use and understand.`,
MB1 = `I immediately buy a product after seeing content in Shopee Video.`,
MB2 = `I feel encouraged to purchase a product after watching Shopee Video.`,
MB3 = `I consider purchasing a product after seeing it in Shopee Video.`
)
Memilih indikator yang digunakan dalam model SEM-PLS
sem_data <- sem_data %>%
mutate(across(everything(), ~as.numeric(as.character(.))))
Mengubah seluruh variabel menjadi tipe numerik.
sem_data <- na.omit(sem_data)
Menghapus data yang masih memiliki missing value.
model_vif <- lm(MB1 ~ KS1 + KS2 + KS3 + KV1 + KV2, data = sem_data)
Membuat model regresi linear untuk pengujian multikolinearitas.
alias(model_vif)
## Model :
## MB1 ~ KS1 + KS2 + KS3 + KV1 + KV2
Memeriksa kemungkinan adanya variabel yang saling identik atau redundant.
summary(sem_data$KV3)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 1.000 5.000 6.000 5.843 7.000 7.000
table(sem_data$KV3)
##
## 1 2 3 4 5 6 7
## 1 3 7 19 60 121 89
Menampilkan ringkasan distribusi data pada variabel KV3.
vif(model_vif)
## KS1 KS2 KS3 KV1 KV2
## 1.579167 1.495296 1.636515 1.756435 1.786728
Menghitung nilai Variance Inflation Factor (VIF) untuk mendeteksi multikolinearitas antar variabel independen.
remove.packages("seminr")
## Removing package from '/cloud/lib/x86_64-pc-linux-gnu-library/4.6'
## (as 'lib' is unspecified)
Kode tersebut digunakan untuk menghapus package seminr yang telah terpasang sebelumnya agar tidak terjadi konflik versi package.
install.packages("remotes")
## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.6'
## (as 'lib' is unspecified)
remotes::install_version("seminr", version = "2.3.3")
## Downloading package from url: http://rspm/default/__linux__/noble/latest/src/contrib/Archive/seminr/seminr_2.3.3.tar.gz
## Installing package into '/cloud/lib/x86_64-pc-linux-gnu-library/4.6'
## (as 'lib' is unspecified)
Kode digunakan untuk menginstal package seminr versi 2.3.3 yang digunakan dalam analisis SEM-PLS, kemudian me-restart sesi R agar package dapat dimuat dengan baik
library(seminr)
names(sem_data)
## [1] "KS1" "KS2" "KS3" "KV1" "KV2" "KV3" "MB1" "MB2" "MB3"
sessionInfo()
## R version 4.6.0 (2026-04-24)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 24.04.4 LTS
##
## Matrix products: default
## BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
## LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.26.so; LAPACK version 3.12.0
##
## locale:
## [1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8
## [4] LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8 LC_MESSAGES=C.UTF-8
## [7] LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C
## [10] LC_TELEPHONE=C LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C
##
## time zone: UTC
## tzcode source: system (glibc)
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] moments_0.14.1 car_3.1-5 carData_3.0-6 seminr_2.3.3
## [5] readxl_1.5.0 corrplot_0.95 psych_2.6.5 lubridate_1.9.5
## [9] forcats_1.0.1 stringr_1.6.0 dplyr_1.2.1 purrr_1.2.2
## [13] readr_2.2.0 tidyr_1.3.2 tibble_3.3.1 ggplot2_4.0.3
## [17] tidyverse_2.0.0
##
## loaded via a namespace (and not attached):
## [1] sass_0.4.10 generics_0.1.4 stringi_1.8.7 lattice_0.22-9
## [5] hms_1.1.4 digest_0.6.39 magrittr_2.0.5 evaluate_1.0.5
## [9] grid_4.6.0 timechange_0.4.0 RColorBrewer_1.1-3 fastmap_1.2.0
## [13] cellranger_1.1.0 jsonlite_2.0.0 Formula_1.2-5 scales_1.4.0
## [17] jquerylib_0.1.4 abind_1.4-8 mnormt_2.1.2 cli_3.6.6
## [21] rlang_1.2.0 remotes_2.5.0 withr_3.0.2 cachem_1.1.0
## [25] yaml_2.3.12 tools_4.6.0 parallel_4.6.0 tzdb_0.5.0
## [29] vctrs_0.7.3 R6_2.6.1 lifecycle_1.0.5 pkgconfig_2.0.3
## [33] pillar_1.11.1 bslib_0.11.0 gtable_0.3.6 glue_1.8.1
## [37] xfun_0.57 tidyselect_1.2.1 rstudioapi_0.18.0 knitr_1.51
## [41] farver_2.1.2 htmltools_0.5.9 nlme_3.1-169 labeling_0.4.3
## [45] rmarkdown_2.31 compiler_4.6.0 S7_0.2.2
Kode tersebut digunakan untuk memuat package seminr, menampilkan nama variabel pada dataset, serta melihat informasi versi R dan package yang digunakan.
sem_data <- as.data.frame(sem_data)
Kode digunakan untuk mengubah data menjadi format data frame agar dapat diproses dalam analisis SEM-PLS menggunakan package seminr.
measurement_model <- constructs(
reflective("Kualitas_Sistem", c("KS1","KS2","KS3")),
reflective("Konten_Video", c("KV1","KV2","KV3")),
reflective("Minat_Beli", c("MB1","MB2","MB3"))
)
Mendefinisikan hubungan indikator dengan konstruk laten menggunakan model reflektif.
structural_model <- relationships(
paths(from = c("Kualitas_Sistem","Konten_Video"), to = "Minat_Beli")
)
Mendefinisikan hubungan antar konstruk dalam model penelitian.
pls_model <- estimate_pls(
data = sem_data,
measurement_model = measurement_model,
structural_model = structural_model
)
## Generating the seminr model
## All 300 observations are valid.
Melakukan estimasi model SEM-PLS berdasarkan data penelitian.
summary(pls_model)
##
## Results from package seminr (2.3.3)
##
## Path Coefficients:
## Minat_Beli
## R^2 0.309
## AdjR^2 0.304
## Kualitas_Sistem 1.506
## Konten_Video -0.868
##
## Reliability:
## alpha rhoA rhoC AVE
## Kualitas_Sistem 0.673 0.762 0.657 0.417
## Konten_Video 0.790 0.793 0.790 0.557
## Minat_Beli 0.842 0.848 0.845 0.646
##
## Alpha, rhoA, and rhoC should exceed 0.7 while AVE should exceed 0.5
Menampilkan hasil keseluruhan analisis SEM-PLS.
pls_model$outer_loadings
## Kualitas_Sistem Konten_Video Minat_Beli
## KS1 0.5281022 0.0000000 0.0000000
## KS2 0.4015852 0.0000000 0.0000000
## KS3 0.9006765 0.0000000 0.0000000
## KV1 0.0000000 0.6831000 0.0000000
## KV2 0.0000000 0.7663776 0.0000000
## KV3 0.0000000 0.7848477 0.0000000
## MB1 0.0000000 0.0000000 0.8088527
## MB2 0.0000000 0.0000000 0.8519792
## MB3 0.0000000 0.0000000 0.7469329
Menampilkan nilai outer loading untuk mengukur validitas indikator terhadap konstruk.
pls_model$path_coef
## Kualitas_Sistem Konten_Video Minat_Beli
## Kualitas_Sistem 0 0 1.5058689
## Konten_Video 0 0 -0.8675343
## Minat_Beli 0 0 0.0000000
Menampilkan koefisien jalur antar konstruk dalam model.
summary(pls_model)$r_squared
## NULL
Menampilkan nilai R-Square untuk mengetahui kemampuan variabel independen dalam menjelaskan variabel dependen.
plot(pls_model)
Menampilkan diagram model SEM-PLS.
summary(pls_model)$reliability
## alpha rhoA rhoC AVE
## Kualitas_Sistem 0.673 0.762 0.657 0.417
## Konten_Video 0.790 0.793 0.790 0.557
## Minat_Beli 0.842 0.848 0.845 0.646
##
## Alpha, rhoA, and rhoC should exceed 0.7 while AVE should exceed 0.5
Menampilkan hasil pengujian reliabilitas konstruk.
summary(pls_model)$validity
## $vif_items
## Kualitas_Sistem :
## KS1 KS2 KS3
## 1.513 1.447 1.180
##
## Konten_Video :
## KV1 KV2 KV3
## 1.658 1.737 1.602
##
## Minat_Beli :
## MB1 MB2 MB3
## 2.043 3.144 2.039
##
##
## $htmt
## Kualitas_Sistem Konten_Video Minat_Beli
## Kualitas_Sistem . . .
## Konten_Video 0.991 . .
## Minat_Beli 0.581 0.696 .
##
## $fl_criteria
## Kualitas_Sistem Konten_Video Minat_Beli
## Kualitas_Sistem 0.646 . .
## Konten_Video 0.807 0.746 .
## Minat_Beli 0.487 0.570 0.804
##
## FL Criteria table reports square root of AVE on the diagonal and construct correlations on the lower triangle.
##
## $cross_loadings
## Kualitas_Sistem Konten_Video Minat_Beli
## KS1 0.752 0.458 0.295
## KS2 0.674 0.394 0.224
## KS3 0.850 0.840 0.502
## KV1 0.583 0.823 0.437
## KV2 0.583 0.854 0.491
## KV3 0.850 0.840 0.502
## MB1 0.457 0.496 0.849
## MB2 0.434 0.530 0.933
## MB3 0.381 0.464 0.834
summary(pls_model)$validity$AVE
## NULL
Menampilkan hasil pengujian validitas dan nilai Average Variance Extracted (AVE).
nrow(sem_data)
## [1] 300
boot_model <- bootstrap_model(
seminr_model = pls_model,
nboot = 500,
cores = 1
)
## Bootstrapping model using seminr...
## Bootstrapping encountered this ERROR:
## Error in `checkForRemoteErrors()`:
## ! one node produced an error: unused argument (assess_syntax = FALSE)
Melakukan bootstrapping sebanyak 500 subsampel untuk menguji signifikansi hubungan antar variabel.
names(boot_model)
## [1] "meanData" "sdData" "smMatrix"
## [4] "mmMatrix" "constructs" "mmVariables"
## [7] "outer_loadings" "outer_weights" "path_coef"
## [10] "iterations" "weightDiff" "construct_scores"
## [13] "rSquared" "inner_weights" "data"
## [16] "rawdata" "measurement_model" "structural_model"
## [19] "settings"
untuk menampilkan nama komponen yang terdapat pada objek boot_model hasil bootstrapping SEM-PLS.
boot_model$paths
## NULL
Menampilkan hasil pengujian jalur beserta nilai statistiknya.
write.csv(pls_model$outer_loadings, "Outer_Loading.csv")
write.csv(summary(pls_model)$r_squared, "R_Square.csv")
Menyimpan hasil outer loading dan R-Square ke file CSV untuk dokumentasi penelitian.