Re: [R] plspm package error in data frame

2017-06-12 Thread Rui Barradas
Hello, Please allways cc the list, don't answer just to me. Now I'm getting a different error. I had noticed that you have no reference to 'TPBDATA' before the call to plspm but I forgot to mention it in my first e-mail. TPB_pls1 = plspm(TPBDATA, TPB_path, TPB_blocks, modes = TPB_modes)

Re: [R] plspm package error in data frame

2017-06-11 Thread Rui Barradas
Hello, Your code throws an error before the line you've mentioned: > library(plspm) > > "Attitude" = c(1, 0, 0, 0, 0, 0, 0, 0) > > "Normative Beliefs" = c(1, 0, 0, 0, 0, 0, 0, 0) > > "Subjective Norm" = c(0, 0, 1, 0, 0, 0, 0, 0) > > "Control Beliefs" = c(1, 0, 1, 0, 0, 0, 0, 0) > > "Perceived

Re: [R] plspm package error in data frame

2017-06-11 Thread Bert Gunter
You need to first go through a basic tutorial to learn basic R constructs and functionality. IMHO, fooling around with special packages before you learn the basics is a bad strategy. Packages generally assume you know the basics. Some tutorial recommendations can be found here:

[R] plspm package error in data frame

2017-06-11 Thread Sarah Sinasac
Hello, I am new to R and hope I will not seem ignorant in this post. I am currently using the plspm package by Gaston Sanchez accompanied by his text book. I have attempted to create a square matrix, which has seemed successful. I used the following code: > "Attitude" = c(1, 0, 0, 0, 0, 0, 0, 0)