I encounter this error while running the pls.groups command:
Error in if (w_dif < specs$tol || iter == specs$maxiter) break :
missing value where TRUE/FALSE needed
I have removed all NA values and have deleted any observations that hold the same values across all variables. My data is all of the right type (for groups, being a two-level factor). I have addressed these problems due to reading about a similar case here:
I encounter this error while running the pls.groups command:
I have removed all NA values and have deleted any observations that hold the same values across all variables. My data is all of the right type (for groups, being a two-level factor). I have addressed these problems due to reading about a similar case here:
https://stackoverflow.com/questions/31685143/hurdle-in-pls-path-modeling
Below is my code and a link to my dataset
Data: https://www.dropbox.com/s/8vewuupywpi1jkt/farmwood_groups%28distance%29.csv?dl=0
Any help would be appreciated. Thank you in advance.