You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to R-inla discussion group
Hello,
Suppose I fit a model (using simplified notation):
ER ~ 1 + f(heat,model="rw2")
However, I want the "dose-response" relationship between heat and ER to be monotonically increasing, so if heat increases, the ER value will either stay the same or increase, but not decrease.
Is this possible?
Thanks,
John
John Molitor
unread,
May 24, 2025, 3:05:52 PM5/24/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to R-inla discussion group
To to follow up on my own post, what I'm really after is a model with a monotonic relationship between heat and ER (as heat goes up ER goes up), but I want the effect of heat to vary by zipcode (zip) with some besag-like spatial smoothing on "intercepts" and "slopes" (effects), similar in spirit to Spatially Varying Coefficient (SVC) models but with a "spline" (RW2) relationship between heat and ER.
Håvard Rue
unread,
May 24, 2025, 3:15:25 PM5/24/25
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to John Molitor, R-inla discussion group
there is no way of doing exactly this. the the case you need this, you need to
write something spesific (using 'rgeneric' or 'cgeneric')
essentially, you need to put the coefficients into the hyperparameters and do
the spline, similar to the 'linear regression' example in 'rgeneric'