rsadd
, rsmul
or rstrans
)
by forming a Brownian Bridge.rs.br(fit,sc,rho=0,test="max",global=TRUE)
rsadd
, rsmul
or rstrans
function.resid
function. This is used to save time if several tests
are to be calculated on these residuals and can otherwise be omitted.rho
. The default is rho=0
, which sets all
weigths to 1."max"
(default), which tests the maximum absolute value of the
bridge, and cvm
, which calculates the Cramer Von Mises statistic.rs.br
. This function would usually be followed by both a
print and a plot of the result. The plot gives a Brownian bridge for each of the variables.
The horizontal lines are the 95of the Brownian bridgersadd
, rsmul
, rstrans
, resid
.data(slopop)
data(rdata)
fit <- rsadd(Surv(time,cens)~sex+ratetable(age=age*365,sex=sex,
year=year),ratetable=slopop,data=rdata,int=5)
rsbr <- rs.br(fit)
print(rsbr)
plot(rsbr)
Run the code above in your browser using DataLab