mscheb
2015-Aug-11 14:16 UTC
[R] plspm error: Error in solve.qr(qr(X[, blockinds == j]), Z[, j]) :
Hello there, I am performing a path analysis using plspm. I successfully ran one analysis but then tried to rerun with some tweaks of my data and now am getting this error message: Error in solve.qr(qr(X[, blockinds == j]), Z[, j]) : singular matrix 'a' in 'solve' My code is:> PNS = c(0, 0, 0, 0, 0) > PND = c(1, 0, 0, 0, 0) > mothering = c(1, 1, 0, 0, 0) > controls = c(0, 0, 0, 0, 0) > behav.diff.47 = c(1, 1, 1, 1, 0) > second_path = rbind(PNS, PND, mothering, controls, behav.diff.47) > > colnames(second_path) = rownames(second_path) > innerplot(second_path) > second_blocks = list(13, 14:17, 19, 2:12, 18) > second_modes = c("B", "B", "B", "B", "B") > second_plspm = plspm(steph.data.use.path2, second_path, second_blocks, > modes = second_modes)Can anyone help me? It seems strange it worked successfully before and now I can't run it when all I did was omit a few rows. Any help much appreciated :) -- View this message in context: http://r.789695.n4.nabble.com/plspm-error-Error-in-solve-qr-qr-X-blockinds-j-Z-j-tp4710987.html Sent from the R help mailing list archive at Nabble.com.