On Aug 2, 2013, at 03:24 , Roslina Zakaria wrote: > Dear r-users, > > I am using KS test to test the goodness of fit for my data and the got the > following output. However, I don't understand about the "warning messages". > What does it mean by "horizontals" is not a graphical parameter" >
It's "horizontal", but I don't think this is coming from ks.test, which isn't supposed to do anything with graphics (unless you modified it). Would you by any chance have a graphics device open, for which you have been setting parameters? Also, I think there is a buglet in which R warnings are sometimes delayed, so it may came from a previous command. I don't think it would happen twice, though. -pd > Thank you so much for any help given and it is very much appreciated. > > >> ks.test(compare[,1], compare[,2]) > Two-sample Kolmogorov-Smirnov test > data: compare[, 1] and compare[, 2] > D = 0.0755, p-value = 2.238e-05 > alternative hypothesis: two-sided > Warning messages: > 1: "horizontals" is not a graphical parameter > 2: "horizontals" is not a graphical parameter > 3: "horizontals" is not a graphical parameter > 4: "horizontals" is not a graphical parameter > 5: "horizontals" is not a graphical parameter > 6: "horizontals" is not a graphical parameter > 7: In ks.test(compare[, 1], compare[, 2]) : > cannot compute correct p-values with ties >> ks.test(compare[,1], compare[,2]) > Two-sample Kolmogorov-Smirnov test > data: compare[, 1] and compare[, 2] > D = 0.0755, p-value = 2.238e-05 > alternative hypothesis: two-sided > Warning messages: > 1: "horizontals" is not a graphical parameter > 2: "horizontals" is not a graphical parameter > 3: "horizontals" is not a graphical parameter > 4: "horizontals" is not a graphical parameter > 5: "horizontals" is not a graphical parameter > 6: "horizontals" is not a graphical parameter > 7: In ks.test(compare[, 1], compare[, 2]) : > cannot compute correct p-values with ties > [[alternative HTML version deleted]] > > ______________________________________________ > 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. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd....@cbs.dk Priv: pda...@gmail.com ______________________________________________ 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.