On 05/02/2014 03:32 AM, begavett via lavaan wrote:
> Error in lav_data_full(data = data, group = group, group.label =
> group.label, :
> lavaan ERROR: ordered variable(s) has/have only 1 level
>
> Of course there is only going to be 1 level to an ordinal variable when
> there is only 1 case. What am I doing wrong? Is there a solution to this
> problem?
Not in this version (0.5-16). You will need to add more (perhaps fake)
data, until the error message goes away. And ignore everything but the
case you need.
The 'newdata' is currently processed (and checked) just as original
data. Hence the error/warning. I will see if we can somehow avoid this
to allow for a single case in predict().
Yves.