I followed the book *Partial Least Squares Structural Equation Modeling (PLS-SEM) Using R: A workbook* (Hair et al, 2021) and got stuck up to Page 62 ch.3

# Estimate the model

corp_rep_simple_model <- estimate_pls(data = corp_rep_data,

measurement_model = simple_mm,

structural_model = simple_sm,

inner_weights = path_weighting,

missing = mean_replacement,

missing_value = "-99")

it resulted in error:

Generating the seminr model

Error in `[.data.frame`

(data, , all_loc_non_int_items(measurement_model)) :

undefined columns selected

I have copied the scripts including followed the instruction from internet (such as:>

library(janitor)

Attaching package: â€˜janitorâ€™;

corp_rep_data2 <- clean_names(corp_rep_data)

names(corp_rep_data2)

But still cannot get the solution.

your help is very much appreciated