Tuesday, April 16, 2013

RG#68: Quantile comparison plot - QQ Plot (normal, t or F)

set.seed(1234)
require(car)
xvar <- c(rnorm(100, 20, 5), rnorm (100, 30, 5))
# normal distribution 
qqPlot(xvar, dist="norm")


# t distribution with 20 df 

qqPlot(xvar, dist="t", df=20)




No comments:

Post a Comment

Note: Only a member of this blog may post a comment.