Displaying 3 results from an estimated 3 matches for "innerplot".
2017 Jun 11
3
plspm package error in data frame
...1, 0, 1, 0, 1, 0, 0)
> "Behaviour" = c(0, 0, 0, 0, 0, 0, 1, 0)
> TPB_path = rbind(`Behavioural Beliefs`, Attitude, `Normative Beliefs`, `Subjective Norm`, `Control Beliefs`, `Perceived Behavioural Control`, Intention, Behaviour)
> colnames(TPB_path) = rownames(TPB_path)
> innerplot(TPB_path, box.size = 0.1)
Then I attempted to set up the pls model using the following code (as
directed by the textbook and the r help function):
> #outermodel
> TPB_blocks = list(1:7, 8:14, 15:21, 22:28, 29:34, 35:39, 40:44, 45:48)
> TPB_modes = rep("A", 8)
> TPB_pls1 =...
2013 Apr 29
0
plspm error: singular matrix 'a' in 'solve'
...lve.qr(qr(X.blok), Z[, j]) : singular matrix 'a' in 'solve'
I would greatly appreciate any help resolving this matter. I got the same
error after changing the inner model matrix to be the same as the model
Sanchez uses in his first example. The package seems to be working because
innerplot() has worked. My code is below.
Thanks very much!
-Mitch Hunter
Early = c(0, 0, 0)
Late = c(0, 0, 0)
Weediness = c(1, 1, 0)
wd.inner = rbind(Early, Late, Weediness)
colnames(wd.inner) = rownames(wd.inner)
innerplot(wd.inner, box.size = 0.1)
wd.outer = list(2:5,6:9,10)
wd.modes = c("B&qu...
2017 Jun 12
0
plspm package error in data frame
...oural Beliefs`, Attitude, `Normative Beliefs`,
>>>> `Subjective Norm`, `Control Beliefs`, `Perceived Behavioural Control`,
>>>> Intention, Behaviour)
>>>
>>>
>>>> colnames(TPB_path) = rownames(TPB_path)
>>>
>>>
>>>> innerplot(TPB_path, box.size = 0.1)
>>>
>>>
>>> Then I attempted to set up the pls model using the following code (as
>>> directed by the textbook and the r help function):
>>>
>>>> #outermodel
>>>
>>>
>>>> TPB_blocks = li...