I think you did not include the other error messages you got while running your code. Package adk was removed from CRAN a while ago:
> install.packages("adk") Warning message: package 'adk' is not available (for R version 3.3.1) > library(adk) Error in library(adk) : there is no package called 'adk' The error you included says that adk.test could not be found since the package was never installed. There are many implementations of the Anderson Darling test. A quick search using Google turned up versions in packages nortest, kSamples, and DescTools. ------------------------------------- David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -----Original Message----- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of roslinazairimah zakaria Sent: Tuesday, August 2, 2016 11:37 AM To: r-help mailing list Subject: [R] Anderson Darling Goodness of fit test Dear r-users, I would like to perform Anderson Darling Goodness of fit test as such: install.packages("adk") library(adk) x3 <- list(stn_all[,1], balok_gen); x3 adk.test(x3) #x3 <- list(jun_data1_pos,jun_gen); x3 #adk.test(x3) However, I got this reply: > adk.test(x3) Error: could not find function "adk.test" Thank you so much for any help given. -- *Dr. Roslinazairimah Binti Zakaria* *Tel: +609-5492370; Fax. No.+609-5492766* *Email: roslinazairi...@ump.edu.my <roslinazairi...@ump.edu.my>; roslina...@gmail.com <roslina...@gmail.com>* Deputy Dean (Academic & Student Affairs) Faculty of Industrial Sciences & Technology University Malaysia Pahang Lebuhraya Tun Razak, 26300 Gambang, Pahang, Malaysia [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.