Displaying 2 results from an estimated 2 matches for "mfargs".
Did you mean:
mbargs
2004 Oct 28
0
Auxilliary args in gls
...data frame, as it is a vector of a
different length. How can this be done?
The gls() code suggests it may be difficult to keep the auxillary arg
out of the model.frame but in the evaluation frame of the formula:
glsSt <- glsStruct(corStruct = correlation, varStruct =
varFunc(weights))
mfArgs <- list(formula = asOneFormula(formula(glsSt), model,
groups), data = data, na.action = na.action)
if (!missing(subset)) {
mfArgs[["subset"]] <- asOneSidedFormula(Call[["subset"]])[[2]]
}
mfArgs$drop.unused.levels <- TRUE
dataMod <- d...
2004 Dec 01
0
gnls(0 error: invalid variable type
...odel.frame(formula, rownames, variables, varnames, extras,
extranames, : invalid variable type "
Rht is a defined function to be fitted and initial values are stored in
three vectors strssb0-b2. The error occurred at the gnls() source line:
dataMod <- do.call("model.frame", mfArgs)
All variables in the data frame are listed below. By examining those 5
variables used in the function, I failed to spot any offending one: t1, t2,
h1, and h2 are all numeric and Sisp is a factor of 15 levels.
> str(gbht10)
`data.frame': 2400 obs. of 15 variables:
$ sidx44: num 17.8 1...