Skip to content

Error in :=(pvalue, NA) #19

Description

@goterm

Hi, I want to test ALASCA on my longidutinal data but it fails even with the dummy example provided in the examples (https://andjar.github.io/ALASCA/articles/ALASCA.html). after running:

df[, time := paste0("t_", time)]

 res <- ALASCA(
+   df,
+   value ~ time + (1|id)
+ )

INFO [2026-03-13 17:50:17] Initializing ALASCA (v1.0.19, 2026-01-16)
WARN [2026-03-13 17:50:17] Guessing effects: time
INFO [2026-03-13 17:50:17] Will use linear mixed models!
INFO [2026-03-13 17:50:17] Will use Rfast!
WARN [2026-03-13 17:50:17] The time column is used for stratification
WARN [2026-03-13 17:50:17] Converting character columns to factors
INFO [2026-03-13 17:50:17] Scaling data with sdall ...
INFO [2026-03-13 17:50:17] Calculating LMM coefficients

I get the following error:

Error in :=(pvalue, NA) :
Check that is.data.table(DT) == TRUE. Otherwise, := is defined for use in j, once only and in particular ways. See help(":=", "data.table"). A common reason for this error is allocating a new column in j and using <- instead of :=; e.g., DT[, new_col <- 1] should be DT[, new_col := 1]. Another is using := in a multi-statement {...} block; please use := as the only statement in j.

have you encountered something like this before? thanks in advance for your help!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions