I am using a dataset from an online practice tutorial and the code can be found at the bottom of Page 7 (https://tomhouslay.files.wordpress.com/2017/02/indivvar_mv_tutorial_asreml.pdf)
In the tutorial, they state that they are introducing "trait" as a keyword to signify a multivariate model, but when I run the exact same code I get the following:
Error in eval(parse(text = x), envir = data, enclos = asreml4Env) : object 'trait' not found.
The haggis practice csv file can be downloaded from here: https://figshare.com/articles/Haggis_data_behavioural_syndromes/4702540
Here is the code provided by the tutorial, has something changed with the asreml function?
asr_E_B_us <- asreml(cbind(scale(exploration),
scale(boldness)) ~ trait +
trait:scale(assay_rep, scale = FALSE) +
trait:scale(body_size),
random =~ ID:us(trait, init = c(1,
0.1,1)),
residual =~ units:us(trait, init = c(0.1,
0.1,0.1)),
data = HData,
maxiter = 100)