asreml call in "for" loop (asreml-r)

From: petergs <asremlforum_at_VSNI.CO.UK>
Date: Fri, 4 Dec 2009 06:33:52 +0000

G'day, List.

Could someone tell me why the following gives me the error it does, please?

phis <- seq(5, 60, by = 5)
temp.asr <- list()
for(i in 1:12) {
    temp.asr[[i]] <- asreml(oc ~ 1 + x + y, data = data.temp,
        rcov = ~ mtrn(x, y, phi = phis[i], nu = "0.5F")) }

Error in model.frame.default(formula = oc ~ x + y + phis + i, data = data.temp, :
  variable lengths differ (found for 'phis')

Thanks in anticipation,

Peter Geelan-Small

-------------------- m2f --------------------

Sent using Mail2Forum (http://www.mail2forum.com).

Read this topic online here:
http://www.vsni.co.uk/forum/viewtopic.php?p=1091#1091

-------------------- m2f --------------------
Received on Sat Dec 04 2009 - 06:33:52 EST

This webpage is part of the ASReml-l discussion list archives 2004-2010. More information on ASReml can be found at the VSN website. This discussion list is now deprecated - please use the VSN forum for discussion on ASReml. (These online archives were generated using the hypermail package.)