Skip to content

Help with dudi.pca

2 messages · Michael Kubovy, Mark Difford

#
Hi Michael,
Something makes me think that this is not the full error message, or the
correct error message, or that you have something else in your call to
coinertia?

Why? Because you also list this:

 > coinertia(op.dudi, em3.dudi, n.axes = 2)
Error in sqrt(Dp) : Non-numeric argument to mathematical function

Fact is, coinertia does not accept "n.axes" as an argument, it uses "nf ="
to specify the number of axes.

The function paste(), which is generating the error message, is used in
coinertia(). All I can say from what you have given is do it again with a
clean environment, and make sure that you are using the correct arguments to
coinertia.

Are you able to debug? If not send me your data and I will fix/find the
problem.

Regards, Mark.
Michael Kubovy wrote: