Open Trebicky opened 1 year ago
It does look like it's sorting the participant numbers alphabetically rather then numerically. I'll see if I can find a workaround.
It does not seem like that's it. Based on the rows and better percentage, it seems the "7" should be seventy-something.
The same issue held even when I tried along N=50. It went to 40 and then 5.
I would appreciate the help here.
Simplest workaround for now is to set target
to numeric.
I am R novice. How do you do so, setting target to numeric?
Thanks!
čt 1. 9. 2022 v 10:54 odesílatel Peter Green @.***> napsal:
Simplest workaround for now is to set target to numeric.
— Reply to this email directly, view it on GitHub https://github.com/pitakakariki/simr/issues/245#issuecomment-1233966921, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANG47BEI27DIC6SG7KCWVRDV4BVM5ANCNFSM6AAAAAAQAMHPL4 . You are receiving this because you authored the thread.Message ID: @.***>
Ahh, I see now in the dataset, never mind. Thanks, I'll try and post the result.
čt 1. 9. 2022 v 11:09 odesílatel Vít Třebický @.***> napsal:
I am R novice. How do you do so, setting target to numeric?
Thanks!
čt 1. 9. 2022 v 10:54 odesílatel Peter Green @.***> napsal:
Simplest workaround for now is to set target to numeric.
— Reply to this email directly, view it on GitHub https://github.com/pitakakariki/simr/issues/245#issuecomment-1233966921, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANG47BEI27DIC6SG7KCWVRDV4BVM5ANCNFSM6AAAAAAQAMHPL4 . You are receiving this because you authored the thread.Message ID: @.***>
It works now. So the issue really was that the column which I tried to extend (along) was strings, not numeric values. Thank you for helping me out.
i found another simple way to solve it, you can use: pc_Extended_Atr_AntiBodies$xval <- pc_Extended_Atr_AntiBodies$nlevels and then plot again. @pitakakariki
Following the Simr examples and https://besjournals.onlinelibrary.wiley.com/doi/full/10.1111/2041-210X.12504 I fitted a model and tried extending it along participants (from original N=21, nrow~1500).
While potting powercurve I got a strange Error warning (see below). Also, see the print outcome of the extended powercurve (7 and 9 after 62). The issue remains regardless the N to which I try extending or nsim value. Breaks do not seem to matter.
Extended_Atr_AntiBodies <- extend(Atr_AntiBodies, along="target", n=75) pc_Extended_Atr_AntiBodies <- powerCurve(Extended_Atr_AntiBodies, along="target", breaks=c(5,15,30,45,60,75), nsim=50, progress=TRUE) print(pc_Extended_Atr_AntiBodies) plot(pc_Extended_Atr_AntiBodies)
Time elapsed: 5 h 26 m 6 s
Any suggestion on how to resolve this?