Computes inverse-link linear model values for map2stan
samples.
link( fit , data , n=1000 , probs=NULL , refresh=0.1 , ... )
Object of class map2stan
Optional list of data to compute predictions over
Number of samples to use
Not yet implemented
Refresh interval for progress display. Set to refresh=0
to suppress display.
Other parameters to pass to someone
This function computes the value of each linear model at each sample for each case in the data. Inverse link functions are applied, so that for example a logit link linear model produces probabilities, using the logistic.
This function is used internally by WAIC
. It's still a work in progress. Most notably, it doesn't work for ordered logistic models.