在matlab中将数据集数组作为数据集处理,就像其他程序一样(spss、r、stata)
我有一个表,有80个变量,512个观察值 所有值都是数字 我想使用我的表(类:dataset)作为dataset进行因子分析 现在,我仍在使用这个表达式来实现这一点在matlab中将数据集数组作为数据集处理,就像其他程序一样(spss、r、stata),matlab,dataset,statistics,Matlab,Dataset,Statistics,我有一个表,有80个变量,512个观察值 所有值都是数字 我想使用我的表(类:dataset)作为dataset进行因子分析 现在,我仍在使用这个表达式来实现这一点 factoran(double(table),m) 我想使用这样一个带有datasetfun的表达式来保存表信息 datasetfun(@(x) factoran(x,m), table, 'datasetoutput', true) 但它不起作用 Error using factoran (line 133) X must h
factoran(double(table),m)
我想使用这样一个带有datasetfun的表达式来保存表信息
datasetfun(@(x) factoran(x,m), table, 'datasetoutput', true)
但它不起作用
Error using factoran (line 133)
X must have more than one row (observation) and more than one column (variable).
Error in @(x)factoran(x,3)
Error in dataset/datasetfun (line 101)
怎么办 b=datasetfun(fun,A)
将fun
指定的函数应用于数据集数组A
的每个变量(每列)。由于factoran
需要多个列来执行其操作,因此它不能与datasetfun
一起使用