0

When I apply Anderson-Darling test on my dataset using lapply, I got results only for few columns. What would be the reason? Is there any solution?

I tried:

lapply(df4, ad.test)

or

apply(df,2,ad.test)

For both of these I got the same results, but like I said not for all of the columns.

Here's a link to a related question: Anderson-Darling normality test on all columns of a dataframe

M--
  • 25,431
  • 8
  • 61
  • 93
RIYA
  • 1
  • 2
  • 1
    Welcome to Stack Overflow! You need to provide a [minimal, reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) of your data. Taking the [Tour](https://stackoverflow.com/tour) and reading [How to Ask](https://stackoverflow.com/help/how-to-ask) can be helpful as well. – M-- Jan 26 '23 at 19:26
  • The comments under the the question you link suggest that `ad.test` will only work on numeric columns without missing values. Have you checked that all your columns are numeric? Have you checked that they don't have missing values? – Gregor Thomas Jan 26 '23 at 19:52
  • Please provide enough code so others can better understand or reproduce the problem. – Community Jan 26 '23 at 21:15

0 Answers0