@iiredo@rocc@to m@iii@g oii i@stweb@et@it
2023-May-15 11:26 UTC
[R] PROP_TEST function from INFER package
Dear all, I'm trying to replicate the same example you can find in: https://rpkgs.datanovia.com/rstatix/reference/prop_test.html but I get the following get this error message:> library(infer)> prop_test(x = 95, n = 160, p = 0.5, detailed = TRUE)Error: Please supply a response variable that is not `NULL`.>> strsplit(version[['version.string']], ' ')[[1]][3][1] "4.3.0">> packageVersion("infer")[1] '1.0.4' Anybody can give any help? Thank you a lot, Alfredo [[alternative HTML version deleted]]
Hi, You are using the prop_test() function from the infer CRAN package, with an argument set for an example using the prop_test() function from the rstatix CRAN package. They are **not** the same function, and do not take the same arguments, even though they have the same name. Read the help page for the prop_test() function in the infer package, where 'x' is supposed to be a data frame, not a vector, and there is no 'n' argument. Regards, Marc Schwartz On May 15, 2023 at 7:26:16 AM, alfredo.roccato at fastwebnet.it (alfredo.roccato at fastwebnet.it (mailto:alfredo.roccato at fastwebnet.it)) wrote:> Dear all, > > I'm trying to replicate the same example you can find in: > https://rpkgs.datanovia.com/rstatix/reference/prop_test.html > > but I get the following get this error message: > > > > > library(infer) > > > prop_test(x = 95, n = 160, p = 0.5, detailed = TRUE) > > Error: Please supply a response variable that is not `NULL`. > > > > > > > > strsplit(version[['version.string']], ' ')[[1]][3] > > [1] "4.3.0" > > > > > > packageVersion("infer") > > [1] '1.0.4' > > > > Anybody can give any help? > > Thank you a lot, > > Alfredo > >