A followup:
dFdhh is also not specified.
On 05/08/2018 06:18 PM, Paul Glad Mihai wrote:
> I tried to run a 2nd level flexible factorial estimation and got the
> following error:
>
> Failed 'Model estimation'
> Undefined function or variable 'dh'.
> In file "/data/p_nmc002/spm12.6906/spm_reml.m" (v5223), function
> "spm_reml" at line 106.
>
> Here's the code for the line:
>
> for i = 1:D
> if min(real(eig(full(C)))) < 0
>
> % increase regularisation and re-evaluate C
> %--------------------------------------------------------------
> t = t - 1;
> h = h - dh; % <----- line 106
> dh = spm_dx(dFdhh,dFdh,{t});
> h = h + dh;
> C = sparse(n,n);
> for i = 1:m
> C = C + Q{i}*h(i);
> end
> else
> break
> end
> end
>
> Does `dh` first need to be specified to something like 0?
>
> Regards,
> Glad
>
--
Paul Glad Mihai, PhD
Independent Research Group "Neural Mechanisms of Human Communication"
Max Planck Institute for Human Cognitive and Brain Sciences
Stephanstraße 1A, 04103 Leipzig, Germany
Phone: +49 (0) 341-9940-2478
E-mail: [log in to unmask]
|