MARSS icon indicating copy to clipboard operation
MARSS copied to clipboard

Add automatic building of covariate factors

Open eeholmes opened this issue 4 years ago • 0 comments

Currently

d <- rep(1:2, each=10)
MARSS(dat, model=list(d=d))

This will treat d as numeric (as it is).

But if d is character or a factor,

d <- as.factor(rep(1:2, each=10))
MARSS(dat, model=list(d=d))

MARSS will not construct the factor matrix for you.

eeholmes avatar Nov 03 '21 15:11 eeholmes