Parametric bootstrap with covariance
parametric.bootstrap.cov(boot.R, x, cov, seed)
numeric. Number of bootstrap samples to generate.
numeric vector. Actual values for the data.
numeric matrix, square, length of x
or missing. Covariance
between the various variables in the vector x
.
integer. Seed to use for the random number generation. If it is missing, the seed will not be set to any particular value. If there was a default value, all results would be exactly correlated. So if you want reproducability by fixing the seeds, make sure you choose different seeds for independent variables.
A matrix with as many columns as there are variables in x
and as many rows
as boot.R
.
Other NLS fit functions:
bootstrap.nlsfit()
,
parametric.bootstrap()
,
parametric.nlsfit.cov()
,
parametric.nlsfit()
,
plot.bootstrapfit()
,
predict.bootstrapfit()
,
print.bootstrapfit()
,
simple.nlsfit()
,
summary.bootstrapfit()
# NOT RUN {
x <- 1:3
cov <- matrix(c(0.1, 0, 0.01,
0, 0.15, 0.02,
0.01, 0.02, 0.2), nrow = 3)
parametric.bootstrap.cov(5, x, cov)
# }
Run the code above in your browser using DataLab