Dear Forum,
I will much appreciate guidance about how to use the "gamplot" function for generalized additive models. I have created 2 generalized additive model:
1. gam yvar1 xvar, f(gaussian) link(identity) df(n)
2. gam yvar2 xvar, f(binomial) link(logit) df(n)
Where y-variable yvar1 has normal distribution, and yvar2 has a binomial distribution. The x-variable is a continuous variable.
I would like to use the GAM plotter, "gamplot xvar, nopres". What additional code should I use, or how should I change my yvar such that the y-axis plots the precited mean (for yvar1) and, separately, the predicted probability (for yvar2)?
I am aware that gam stores "GAM_mu", the predicted yvar.
Thanks in advance.
Itai
I will much appreciate guidance about how to use the "gamplot" function for generalized additive models. I have created 2 generalized additive model:
1. gam yvar1 xvar, f(gaussian) link(identity) df(n)
2. gam yvar2 xvar, f(binomial) link(logit) df(n)
Where y-variable yvar1 has normal distribution, and yvar2 has a binomial distribution. The x-variable is a continuous variable.
I would like to use the GAM plotter, "gamplot xvar, nopres". What additional code should I use, or how should I change my yvar such that the y-axis plots the precited mean (for yvar1) and, separately, the predicted probability (for yvar2)?
I am aware that gam stores "GAM_mu", the predicted yvar.
Thanks in advance.
Itai
Comment