temp.control {modTempEff} | R Documentation |
Specifies some inputs to fit the segmented effect of temperature, including starting values for the threshold value, the maximum lags for cold and heat, and the `apparent' dimension of the B-spline bases for cold and heat.
temp.control(psi, L = c(60, 60), ndx = round(L/3), heat.power = 1)
psi |
Numeric to provide the starting value of the one or two breakpoint of the segmented relationship. |
L |
A numerical two-length vector to specify how many lags have to be considered to assess the effect of cold and heat. |
ndx |
The apparent dimension of the two B-spline bases for the DL curves of cold and heat. |
heat.power |
Currently not implemented. |
This auxiliary function is employed to specify the starting value for the one or two breakpoints, the maximum lags for cold and heat effect, and the `apparent' dimension, i.e. the number of columns, of the B-spline bases to fit the DL curves of cold and heat.
A list with the arguments as components to be used by 'tempeff' or 'tempeff.fit'.
Vito Muggeo
Muggeo, V.M.R. (2008) Modeling temperature effects on mortality: multiple segmented relationships with common break points Biostatistics 9, 613–620.
## Not run: # Evaluate temperature effects up to 45 lags and a single breakpoint; # use 20 as starting value temp.control(psi=20,L=c(45,45)) ## End(Not run)