Skip to content

Inverse link function #194

Discussion options

You must be logged in to vote

Why would you want to do that within appraise()? The draw() methods for GAMs have arguments constant and trans that would allow you to plot each individual smooth as if it were on the response scale, in your case you'd need to pass constant = coef(m)[1], trans = inv_link(m) to draw(m, ....) and even then this is only really OK with a single smooth...

As appraise() is for diagnosing potential problems with the model, and one of the tools we have for that is to plot the linear predictor on the link scale, there isn't an option to plot on the response scale --- it would be extraordinarily difficult indeed to discern if the mean variance relationship say was the correct one. Also, we'd have t…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@raffaele-morelli
Comment options

@gavinsimpson
Comment options

Answer selected by raffaele-morelli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants