I am learning a distributed lag non-linear model. In that, I have to create a cross basis matrix first. For cross-basis, I need to specify the knots at equally spaced values of the temperature variable.
This is the script I am using
ktemp <- equalknots(data$temp,nk= ?)
What should be the nk value here? How should I choose the value that represents equally spaced values of temperature variable?
Thanks