When invoking boot.rq like this
b_10 = boot.rq(x, y, tau = .1, bsmethod = "xy", cov = TRUE, R = reps, mofn = mofn)
what does the B matrix (size R x p) in b_10 contain: bootstrapped coefficient estimates or bootstrapped standard errors?
The Value section in the documentation says:
A list consisting of two elements: A matrix
Bof dimension R by p is returned with the R resampled estimates of the vector of quantile regression parameters. [...]
So, it seems to be the coefficient estimates. But Description section says:
These functions can be used to construct standard errors, confidence intervals and tests of hypotheses regarding quantile regression models.
So it seems to be bootstrapped standard errors.
What is it really?
Edit:
I also wonder what difference the option cov = TRUE makes. Thanks!
The bootstrapped values are different depending on whether I use cov = TRUE or not. The code was written by someone else so I'm not sure why that option was put there.
It stores the bootstrap coefficients. Each row of
Bis a sample of coefficients, and you haveRrows.These samples are the basis of further inference. We can compute various statistics from them. For example, to compute bootstrap mean and standard error, we can do:
Are you sure that
cov = TRUEworks? First of all,boot.rqitself has no such argument. It may be passed in via.... However,...is forwarded toboot.rq.pxy(ifbsmethod = "pxy") orboot.rq.pwxy(ifbsmethod = "pwxy"), neither of which deals with acovargument. Furthermore, you usebsmethod = "xy", so...will be silently ignored. As far as I could see,cov = TRUEhas no effect at all.That is what "silently ignored" means. You can pass whatever into
.... They are just ignored.Random sampling won't give identical results on different runs. I suggest you fix a random seed then do testing:
If you don't get TRUE, come back to me.