Transform between different parameterizations of the aster model.
In effect, this function is called inside predict.aster.
Users generally do not need to call it directly.
astertransform(arg, obj, from = c("unconditional", "conditional"),
to.cond = c("unconditional", "conditional"),
to.mean = c("mean.value", "canonical"))a vector of the same length as arg, the transformed parameter vector.
canonical parameter vector of length nrow(obj$data),
either unconditional (\(\varphi\))
or conditional (\(\theta\)) depending on the value of
argument from.
aster model object, the result of a call to aster.
the type of canonical parameter which argument arg is.
the type of parameter we want.
the type of parameter we want.