Closed joanbirules closed 2 months ago
@joanbirules thanks for the post. Can you update your post to include the call to the cardx t.test function. Also, can you please use the reprex package to create your reproducible example. This ensures the isolation of your environment when illustrating the issue.
@ddsjoberg I have used the reprex to report the code parts, but I do not know what you mean by including the cardx t.test function, the function is already there isn't it?
This is the GitHub repo for the {cardx} R package. I don't think you're using that package, right? The best place to ask for help would be stackoverflow for a generic R function
Ok thanks, I've done that.
May I ask, then this solution you proposed was specific to this cardx package? utils::modifyList(list(paired = NULL), keep.null = FALSE)
It's quite strange that it gave you the same error but based on a different package?
What happened?
In this threat, @ddsjoberg commented on a bug with the paired/unpaired tests, giving an error when paired =F or T is entered into the t.test function:
https://github.com/insightsengineering/cardx/issues/56#issue-2143520438
I encounter the same error, when data are in wide format, the t.test works, but when we put data in vertical format, then the t.test gives an error, as the example below:
Created on 2024-06-18 with reprex v2.1.0
@ddsjoberg mentioned that this could be solved with ... |> utils::modifyList(list(paired = NULL), keep.null = FALSE)
but this gives me an error; as copied below:
Created on 2024-06-18 with reprex v2.1.0 I would appreciate if someone could help me solve this problem, which appeared I believe with some updating of packages (the t.test function with paired data worked before normally)
thank you very much, Joan
sessionInfo()
Relevant log output
Code of Conduct
Contribution Guidelines
Security Policy