#### FIRST MODEL 1 ####
# Creating our measurement model
model1_mm <- constructs(
reflective("IP", multi_items("X", 1:21)),
composite("CO", single_item("PECI"), weights = mode_A),
reflective("Acquiescence", multi_items("AQ", 1:3)),
reflective("Compromise", multi_items("COMP", 1:3)),
reflective("Avoid", multi_items("AVO", 1:3)),
reflective("Defy", multi_items("DEF", 1:4)),
reflective("Manipulate", multi_items("MAN", 1:3)),
reflective("Control", single_item("Control_Var_2"))
)
# Interaction constructs must be created after the measurement model is defined.
# We are using the orthogonalization method as per Henseler & Chin (2010)
model1_xm <- interactions(
interaction_ortho("IP", "CO"))
# Structural model
# note: interactions should be the names of its main constructs joined by a '*' in between.
model1_sm <- relationships(
paths(from = "IP", to = c("Acquiescence", "Compromise", "Avoid", "Defy", "Manipulate")),
paths(from = "CO", to = c("Acquiescence", "Compromise", "Avoid", "Defy", "Manipulate")),
paths(from = "Control", to = c("Acquiescence", "Compromise", "Avoid", "Defy", "Manipulate")),
paths(from = "IP*CO", to = c("Acquiescence", "Compromise", "Avoid", "Defy", "Manipulate")))
# Load data, assemble model, and estimate using simplePLS
model1_pls <- estimate_pls(data = data,
measurement_model = model1_mm,
interactions = model1_xm,
structural_model = model1_sm,
inner_weights = path_weighting)
names(data)
[1] "Response_ID" "IP_Address" "Timestamp" "Duplicate" "Time_Taken"
[6] "Seq_Number" "Country_Code" "Region" "Response_Status" "Browser"
[11] "Device" "Operating_System" "Language" "Q45" "Qualificadora"
[16] "X1" "X2" "X3" "X4" "X5"
[21] "X6" "X7" "X8" "X9" "X10"
[26] "X11" "X12" "X13" "X14" "X15"
[31] "X16" "X17" "X18" "X19" "X20"
[36] "X21" "AQ1" "AQ2" "AQ3" "COMP1"
[41] "COMP2" "COMP3" "AVO1" "AVO2" "AVO3"
[46] "DEF1" "DEF2" "DEF3" "DEF4" "MAN1"
[51] "MAN2" "MAN3" "X38" "X39" "X40"
[56] "X41" "X42" "X43" "X44" "X45"
[61] "X46" "X47" "X48" "X49" "X50"
[66] "X51" "X52" "X53" "X54" "X55"
[71] "X56" "X57" "X58" "X59" "X60"
[76] "X61" "X62" "X63" "X64" "X65"
[81] "X66" "X67" "X68" "X69" "X70"
[86] "X71" "X72" "X73" "X74" "X75"
[91] "X76" "X77" "X78" "X79" "X80"
[96] "X81" "X82" "Priority_Time" "Priority_Cost" "Priority_Scope"
[101] "Control_Var_1" "Control_Var_2" "Control_Var_3" "Opinion_Survey" "PECI"