On 05/29/2010 07:39 PM, dunner wrote:

I have written a function to emulate minitab's QQ plotting output (with SW
test and AD test results on the graph):
...
However,  I get the following message when I try to apply it:

ab<-rnorm(1:100, 2)
aa<-log(ab)
Warning message:
In log(ab) : NaNs produced

Almost certainly negative numbers in ab - try:

ab<-abs(ab)

to flip these to positive or use a larger mean

ac<-(ab^2)
df<-data.frame(aa,ab,ac)

mtab.matrix(df)
Error in sort(y) : argument "y" is missing, with no default

mtab.norm(aa)
Error in sort(y) : argument "y" is missing, with no default

These errors look like they are happening in qqplot

Jim

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to