Skip to content

fixed effects and random effects columns need all sample have > 1 class? #25

@xiekunwhy

Description

@xiekunwhy

Hi,

For formula Value ~ 1 + (1 | Location), I always get errors Error: number of class of environmental random effects should be bigger than 1., and the data I used are like following, I want to know why I get this error. Location need all sample with > 1 value?

Taxa	Trait	Year	Location	Value
A01	TN	2024	BJ	9.6
A01	TN	2024	ZHJK	13.2
A02	TN	2024	BJ	7.333333333
A02	TN	2024	ZHJK	NA
A03	TN	2024	BJ	7.8
A03	TN	2024	ZHJK	NA
A04	TN	2024	BJ	11.6
A04	TN	2024	ZHJK	8.6
A05	TN	2024	BJ	8.6
A05	TN	2024	ZHJK	NA
A06	TN	2024	BJ	6.2
A06	TN	2024	ZHJK	14.66666667
A07	TN	2024	BJ	8
A07	TN	2024	ZHJK	5.6
A08	TN	2024	BJ	7.6
A08	TN	2024	ZHJK	NA
A09	TN	2024	BJ	6.2
A09	TN	2024	ZHJK	10
A10	TN	2024	BJ	7.6
A10	TN	2024	ZHJK	9
A11	TN	2024	BJ	7
A11	TN	2024	ZHJK	8.4
A12	TN	2024	BJ	NA
A12	TN	2024	ZHJK	7.6
......

Best,
Kun

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions