Skip to content
Prev 263912 / 398502 Next

VGAM constraints-related puzzle

Edward Wallace <ewjwallace <at> gmail.com> writes:
Hello,

try

rrvglm(y ~ 1 + bs(x), fam = multinomial, trace = TRUE)

It seems what you want is a stereotype model with
a smooth function.
Unfortunately rrvglm() is restricted to regression splines.

You could extract out the scaling coeffs and feed them
into vgam() using the constraints argument, but that
would not be optimal in any strict sense.

cheers

Thomas