Description Usage Arguments Value Note References
Simulate surrogate response values for cumulative link regression models using the latent method described in Liu and Zhang (2017).
1 2 |
object |
An object of class |
method |
Character string specifying the type of surrogate to use; for details, see Liu and Zhang (2017). For cumulative link models, the latent variable method is used. For binary GLMs, the jittering approach is employed. (Currently ignored.) |
jitter.scale |
Character string specifying the scale on which to perform
the jittering. Should be one of |
nsim |
Integer specifying the number of bootstrap replicates to use.
Default is |
... |
Additional optional arguments. (Currently ignored.) |
A numeric vector of class c("numeric", "surrogate") containing
the simulated surrogate response values. Additionally, if nsim > 1,
then the result will contain the attributes:
boot.repsA matrix with nsim columns, one for each
bootstrap replicate of the surrogate values. Note, these are random and do
not correspond to the original ordering of the data;
boot.idA matrix with nsim columns. Each column
contains the observation number each surrogate value corresponds to in
boot.reps. (This is used for plotting purposes.)
Surrogate response values require sampling from a continuous distribution;
consequently, the result will be different with every call to
surrogate. The internal functions used for sampling from truncated
distributions are based on modified versions of
rtrunc and qtrunc.
Liu, Dungang and Zhang, Heping. Residuals and Diagnostics for Ordinal Regression Models: A Surrogate Approach. Journal of the American Statistical Association (accepted). URL http://www.tandfonline.com/doi/abs/10.1080/01621459.2017.1292915?journalCode=uasa20
Nadarajah, Saralees and Kotz, Samuel. R Programs for Truncated Distributions. Journal of Statistical Software, Code Snippet, 16(2), 1-8, 2006. URL https://www.jstatsoft.org/v016/c02.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.