[rkward-devel] wilcoxon tests

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Wed Dec 21 09:19:57 UTC 2011


Hi,

On Tuesday 20 December 2011, meik michalke wrote:
> yes, i get the hint ;-) have you tried the latest rk.ANOVA plugin? it also
> adds a dialog to the "data" menu to prepare data similarily. would that be
> something to work with, maybe?

yes, I guess that's a start. If we had a more generic (more generic terms) 
plugin to convert from wide to long in the "base" distribution, that would go 
a long way, already. We could worry about an embeddable solution, later.

While at it, some comments on the "Prepare within subject data" plugin:
- The dialog does not have a caption, somehow.
- Using "attach" may be slightly dangerous. You risk name clashes with your 
temporary variables. I'd suggest to do
   data <- user.specified.data.frame
instead, and then use
   data$column.name
after that.
- If you are doing the above, perhaps you could also remove the need to select 
a data.frame, first. Rather you could assemble a temporary data.frame from the 
response/subject/group vectors. Not sure, whether this is worth doing, though.
- I think the subject identifier could reasonably default to
   1:num.cases
or
   rownames (data)
. When converting from wide to long, there's typically only one subject per 
row to start with.
- Most plugins use
   .GlobalEnv$object.name <- object.to.save
I think that looks slightly less frightening than assign().
- Between subject variables lack one level of indentation in the generated 
code.
- level=1 is the default for rk.header(). Consider removing "level=1" from the 
generated code.

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20111221/8eef39f5/attachment.sig>


More information about the Rkward-devel mailing list