How to use LLSimpute in MatLab
3 views (last 30 days)
Show older comments
I was trying to use the LLSimpute software ( http://www.cc.gatech.edu/~hpark/softwareMVE.html) in MATLAB. But got difficulties with lots of MATLAB's complain. It worked fine with the example data given with this software. I removed (in my data) the column and row names and changed missing values as requested in the program. Copied my data in the same directory where these LLSimpute programs are. Then, even tried to convert the csv file into a .mat file and trying to execute the first program,'main missing value code'(mpute_llsq_l2.m) like
E=impute_llsq_l2(0,1);
- Even after renaming my new matrix with missing values with the same file name as in the training data, miss0.mat.
- After loading the data ('load miss0.mat') i changed 'data' in the workspace of MATLAB into 'miss_matrix' - as this is needed by the program,mpute_llsq_l2.m.
But i am still getting an error message like the following
>> E=impute_llsq_l2(0,1);
??? Undefined function or method 'eq' for input arguments of type 'struct'.
Error in ==> impute_llsq_l2 at 69
if (f_rowaverage==1) | (m-length(find(miss_matrix==big))) < 400
I am new to MATLAB, can anyone please help me how I can use this LLSimpute software, impute_llsq_l2.m, to impute my missing data which is in csv file format?
Thank you
0 Comments
Answers (3)
Walter Roberson
on 11 Oct 2011
Exactly how did you load the data? The complete command?
If you had
miss_matrix = load('miss0.mat');
then miss_matrix would be returned as a structure that had fields whose names were the names of the variables in the .mat file.
You might instead need to
miss_load = load('miss0.mat');
miss_matrix = miss_load.miss_matrix;
yaya wu
on 31 Jul 2018
May I know that why can't I open this website" http://www.cc.gatech.edu/~hpark/softwareMVE.html"? Thanks for your reply!
0 Comments
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!