0
$\begingroup$

Just wondering is something like this possible:

model <- gam(y ~ x1 * s(x2), data = train.data)

Basically, I need to model something non linear (see s(x2)), which is multiplied by some IV that if zero results in y being 0.

$\endgroup$
  • $\begingroup$ With no responses yet, you may want to explain more fully. $\endgroup$ – rolando2 May 23 at 13:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.