[R] Ptak and Candpara

2012-10-11 Thread Peppe Ricci
Hi, I am using the package PTAK and in particular the command Candpara to perform the Parafac factorizationor of a tensor. The results are not encouraging as I expected, I'm starting a phase of analysis to see if there are errors. I pose a question and I hope you can help me. The command to run th

[R] Problem with tensor factorization

2012-07-30 Thread Peppe Ricci
Hi, thank Petr for your help. I have implemented you code suggestion but there is another problem. It seems that the code: for (i in 1:m){ Z[i,,]=table(occ, data_matrix[,i]) } don't charge any values in Z. Is there some error? Thanks. Giuseppe __ R-h

[R] Problem creation tensor

2012-07-17 Thread Peppe Ricci
Hi guys, I need some help to analyzing my data. I start to describe my data: I have 21 matrices, every matrix on the rows has users and on columns has items, in my case films. Element of index (i, j) represent the rating expressed by user i about item j. I have a matrix for each of professions. An

[R] Problem with package tensor

2012-03-19 Thread Peppe Ricci
Hi, I'm using R to create multidimensional data, ie tensors. R, for my work, is very good for import the data and I have seen that there are packages to manage tensor and to factor the tensor. I would ask a help regarding the package called tensor and tensorA. I have seen, unfortunately, that the