08.04.2015 Views

The gss Package - NexTag Supports Open Source Initiatives

The gss Package - NexTag Supports Open Source Initiatives

The gss Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

44 sshzd<br />

Value<br />

Note<br />

<strong>The</strong> selection of smoothing parameters is through a cross-validation mechanism described in Gu<br />

(2002, Sec. 7.2), with a parameter alpha; alpha=1 is "unbiased" for the minimization of<br />

Kullback-Leibler loss but may yield severe undersmoothing, whereas larger alpha yields smoother<br />

estimates.<br />

A subset of the observations are selected as "knots." Unless specified via id.basis or nbasis,<br />

the number of "knots" q is determined by max(30, 10n 2/9 ), which is appropriate for the default<br />

cubic splines for numerical vectors.<br />

sshzd returns a list object of class "sshzd".<br />

hzdrate.sshzd can be used to evaluate the estimated hazard function. hzdcurve.sshzd<br />

can be used to evaluate hazard curves with fixed covariates. survexp.sshzd can be used to<br />

calculated estimated expected survival. <strong>The</strong> method project.sshzd can be used to calculate<br />

the Kullback-Leibler projection for model selection.<br />

<strong>The</strong> function Surv(futime,status,start=0) is defined and parsed inside sshzd, not<br />

quite the same as the one in the survival package.<br />

Integration on the time axis is done by the 200-point Gauss-Legendre formula on c(min(start),max(futime)),<br />

returned from gauss.quad.<br />

<strong>The</strong> results may vary from run to run. For consistency, specify id.basis or set seed.<br />

Author(s)<br />

Chong Gu, 〈chong@stat.purdue.edu〉<br />

References<br />

Gu, C. (2002), Smoothing Spline ANOVA Models. New York: Springer-Verlag.<br />

Du, P. and Gu, C. (2006), Penalized likelihood hazard estimation: efficient approximation and<br />

Bayesian confidence intervals. Statistics and Probability Letters, 76, 244–254.<br />

Examples<br />

## Model with interaction<br />

data(gastric)<br />

gastric.fit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!