Publications by Tarid Wongvorachan

Text Mining and Word Cloud fundamentals

29.09.2020

Text Mining method allows us to highlight the most frequently used keywords in a paragraph of texts. After we finish mining the text, our output can be in forms of word cloud (aka, text cloud or tag cloud), Word Frequency Plot, or Term Association. Advantages of using word clouds are its simplicity in communicating qualitative findings in terms o...

3321 sym R (21376 sym/21 pcs) 2 img

Support Vector Machine_Practice

29.09.2020

A Support Vector Machine (SVM) is a discriminative classifier formally defined by a separating hyperplane. In other words, given labeled training data (supervised learning), the algorithm outputs an optimal hyperplane which categorizes new examples. The most important question, however, is how do we decide the most optimized hyperplane. setwd("D:...

1072 sym R (4157 sym/16 pcs) 2 img

Logistic Regression_Practice

29.09.2020

setwd("D:/Class Materials & Work/Summer 2020 practice/Logistic Regression") getwd() ## [1] "D:/Class Materials & Work/Summer 2020 practice/Logistic Regression" #Prepare the data----------------------------------------- #Import a dataframe df <- read.csv("binary.csv", header = T) str(df) #Check data structure ## 'data.frame': 400 obs. of ...

6 sym R (12198 sym/53 pcs) 1 img

Confirmatory Factor Analysis_Practice

29.09.2020

We will be using a built-in dataset from lavaan package, the HolzingerSwineford1939 dataset. Confirmatory Factor Analysis (CFA) is usually conducted to test the hypothesis of relationships between observed (manifest) variables and latent variables based on the already established theory. Formulating model syntax is how we describe the model befor...

1578 sym R (4486 sym/6 pcs) 2 img

Multiple Group CFA_Practice

29.09.2020

The lavaan package also supports multiple groups SEM by adding group argument in the cfa() function. In this practice, we will fit a CFA model with the HolzingerSwineford1939 data set. setwd("D:/Class Materials & Work/Summer 2020 practice/SEM/Multiple Group CFA") library(lavaan) library(semTools) First, we will specify the model. HS.model <- '...

2969 sym R (23923 sym/14 pcs)

Path Analysis_Practice

29.09.2020

Path analysis is a form of multiple regression that examines statistical causal mechanism between IVs and a DV. Using this method one can estimate both the magnitude and significance of causal connections between variables. We have multiple regression equations that explain relationships between the DVs to the IV in a restricted order as explaine...

2750 sym R (5262 sym/9 pcs) 3 img

Full Structural Equation Modeling_Practice

29.09.2020

In this practice, we will use the built-in PoliticalDemocracy dataset, which is also used by Bollen (1989) in his book. The figure below contains a graphical representation of the model that we want to fit. The above model can be syntactically explained as follows: setwd("D:/Class Materials & Work/Summer 2020 practice/SEM/SEM") library(lavaan)...

1418 sym R (5641 sym/5 pcs) 3 img

Multidimensional EFA_Practice

29.09.2020

Multidimensional EFA is similar to its unidimensional variance, but with two or more latent variable (factor) in the model. Splitting the BFI dataset For this chapter, you’ll be using the bfi dataset, which consists of responses to 25 items measuring the Big Five personality traits. Since you’ll be doing both exploratory and confirmatory fac...

3826 sym R (8352 sym/17 pcs) 2 img

Classical Test Theory_Practice

29.09.2020

Classical Test Theory (CTT) CTT (aka weak theory or true-score theory) aims to predict outcomes of the test such as item difficulty or the ability of test-takers to improve reliability of the test itself. CTT assumes that each person has a true score that would be obtained if there were no errors in measurement. Further, this approach to psychome...

11920 sym R (29339 sym/57 pcs) 3 img

Transitioning from EFA to CFA_Practice

29.09.2020

In this practice, we will combine both EFA and CFA on the BigFive Personality dataset (bfi). setwd("D:/Class Materials & Work/Summer 2020 practice/SEM/EFA_to_CFA") #Loading required packages library(parameters) library(tidyverse) library(psych) library(see) library(lavaan) library(performance) library(semPlot) The first step is to test t...

4169 sym R (13106 sym/30 pcs) 1 img