SemiParSampleSel
object produced by SemiParSampleSel()
and produces some summaries from it.# S3 method for SemiParSampleSel
summary(object, n.sim=1000, s.meth="svd", prob.lev=0.05,
cm.plot = FALSE, xlim = c(-3, 3), ylab = "Outcome margin",
xlab = "Selection margin", ...)
SemiParSampleSel
object as produced by SemiParSampleSel()
.mvtnorm
for further details.TRUE
display contour plot of the model based on average parameter values.cm.plot
.Using a low level function in mgcv
, based on the results of Marra and Wood (2012), `Bayesian p-values' are returned for the smooth terms. These have
better frequentist performance than their frequentist counterpart. Let \(\hat{\bf f}\)
and \({\bf V}_f\) denote the vector of values of a smooth term evaluated at the original covariate values and the
corresponding Bayesian covariance matrix, and let \({\bf V}_f^{r-}\) denote
the rank \(r\) pseudoinverse of \({\bf V}_f\). The statistic used
is \(T=\hat{\bf f}^\prime {\bf V}_f^{r-} \hat{\bf f}\). This is
compared to a chi-squared distribution with degrees of freedom given by \(r\), which is obtained by
biased rounding of the estimated degrees of freedom.
Covariate selection can also be achieved using a single penalty shrinkage approach as shown in Marra and Wood (2011).
See Wojtys et al. (in press) for further details.
Marra G. and Wood S.N. (2011), Practical Variable Selection for Generalized Additive Models. Computational Statistics and Data Analysis, 55(7), 2372-2387.
Marra G. and Wood S.N. (2012), Coverage Properties of Confidence Intervals for Generalized Additive Model Components. Scandinavian Journal of Statistics, 39(1), 53-74.
Wojtys M., Marra G. and Radice R. (in press), Copula Regression Spline Sample Selection Models: The R Package SemiParSampleSel. Journal of Statistical Software.
SemiParSampleSelObject
, plot.SemiParSampleSel
, predict.SemiParSampleSel
## see examples for SemiParSampleSel
Run the code above in your browser using DataLab