I am checking the association of cold with hospital admissions. I can easily check the association of mean daily temperature (as an exposure variable) on admissions as it'a linear. However, i want to check the coldspell variable association ( a categorical variable with values 1= yes (coldspell) 2= no.. So i want to check the effect of cold spells on outcome. Here are the sample plots that i want to get (i.e. ¨Figure 2 and 3).
https://www.nature.com/articles/srep38380?proof=true%3Ca+href%3D#Sec18
I am using following in crosspred for linear plots. What changes should i make?
predglm