I'm trying to writing a function that will return some properties of a descriptive statistic. When I run, I get an error message which reads "Undefined function 'summary' for input arguments of type 'double'". Here is the function:
function results=summary(array)results.meth = 'summary';results.nobs = nobs(array);results.mean= mean(array); results.se=sem(array); results.count=numel(array); results.name=gname(array); results.std=std(array); results.var=var(array); results.min=min(array); results.max=max(array); results.range=range(array); results.skewness=skewness(array); results.CI=meanci(array); results.PI= predci(array);
Best Answer