Hello, Community
I have built the following matrix (10,10) of data
xdata = Table[RandomVariate[NormalDistribution[], n], 10];
\[Epsilon]data = Table[RandomVariate[NormalDistribution[0, RandomChoice[{1/3, 1, 3}]], n], 10];
\[Beta]data = Table[RandomChoice[{1/3, 1, 3}, n], 10];
ydata = xdata \[Beta]data + \[Epsilon]data;
I rearranged the data according to
data = Table[Transpose[{ydata[[k]], xdata[[k]]}], {k, 10}];
But when I map LinearModelFit to estimate 10 equations like below,
lsFunc = LinearModelFit[#, x, x] & /@ data
It doesn't work {:^(
Can someone please let me know my mistake and how to fix it?
Also, how can I Map properties to the LinearModelFit results? For example, I want to extract the list of "BestFitParameters".