[R] PROP_TEST function from INFER package
Marc Schwartz
m@rc_@chw@rtz @end|ng |rom me@com
Mon May 15 14:00:57 CEST 2023
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 using fastwebnet.it (alfredo.roccato using fastwebnet.it (mailto:alfredo.roccato using 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
>
>
More information about the R-help
mailing list