The R Project SVN R-packages

Rev

Rev 5246 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5246 Rev 5789
Line 63... Line 63...
63
  \code{\link{boot}}, \code{\link{censboot}}, \code{\link{freq.array}},
63
  \code{\link{boot}}, \code{\link{censboot}}, \code{\link{freq.array}},
64
  \code{\link{tilt.boot}}, \code{\link{tsboot}}
64
  \code{\link{tilt.boot}}, \code{\link{tsboot}}
65
}
65
}
66
\examples{
66
\examples{
67
#  A frequency array for a nonparametric bootstrap
67
#  A frequency array for a nonparametric bootstrap
68
city.boot <- boot(city, corr, R=40, stype="w")
68
city.boot <- boot(city, corr, R = 40, stype = "w")
69
boot.array(city.boot)
69
boot.array(city.boot)
70
 
70
 
71
perm.cor <- function(d,i) 
71
perm.cor <- function(d,i) cor(d$x,d$u[i])
72
     cor(d$x,d$u[i])
-
 
73
city.perm <- boot(city, perm.cor, R=40, sim="permutation")
72
city.perm <- boot(city, perm.cor, R = 40, sim = "permutation")
74
boot.array(city.perm, indices=TRUE)
73
boot.array(city.perm, indices = TRUE)
75
}
74
}
76
\keyword{nonparametric}
75
\keyword{nonparametric}
77
% Converted by Sd2Rd version 1.15.
76
% Converted by Sd2Rd version 1.15.