[R] Vector of quantiles

Laurent Gautier laurent at cbs.dtu.dk
Mon Oct 14 21:54:45 CEST 2002


I am not sure I saw where is your trouble, but may be a figure will help
to see...

q <- seq(0.1, 30)
p <- pchisq(q, df=9)
plot(q, p, type="l", xlab="quantiles")

points(q, rep(0, length(q)), col="red", pch="+")


Hopin' it helps,


Laurent


On Mon, Oct 14, 2002 at 01:10:44PM -0400, Bayesianbay at aol.com wrote:
> I have a quick question which is very simple but I seem to have a mental 
> block!
> 
> I'm using the pchisq function to specify a Chi Squared distribution with 9 df 
> which I'm then going to use in the Kolmogorov-Smirnov Test to test some 
> simulated values.
> 
>  so simply: pchisq(q, df=9)
> 
> I know that q is the vector of quantiles but could anybody tell me what 
> exactly this vector needs to contain?
> 
> Many Thanks
> Laura
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

-- 
--------------------------------------------------------------
Laurent Gautier			CBS, Building 208, DTU
PhD. Student			DK-2800 Lyngby,Denmark	
tel: +45 45 25 24 89		http://www.cbs.dtu.dk/laurent
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list