[RkWard-devel] New Plug-ins
SJR
stefan_roediger at gmx.de
Mon Jan 1 22:42:34 UTC 2007
Am Montag, 1. Januar 2007 21:42 schrieb Thomas Friedrichsmeier:
> Hi Stefan,
>
> On Sunday 31 December 2006 01:16, SJR wrote:
> > I added a bunch of plug-ins for simple distributions normality tests and
> > plots. For the normality tests I need is a simple way to check if the
> > data are have a certain length. For example for the lillie.test(x) must a
> > numeric vector be greater than 4 and for sf.test(x) between 5 and 5000.
> >
> > Any comments?
>
> In fact we already had some code to check for dimensionality and length,
> but no way to specify this for a varslot, yet. I've just added the
> following attributes to <varslot>:
>
> - num_dimensions
> The number of dimensions, an object needs to have. "0" (the default) means,
> any number of dimensions is acceptable. (optional, defaults to "0")
>
> - min_length
> The minimum length, an object needs to have in order to be acceptable.
> (optional, defaults to "0")
>
> - max_length
> The maximum length, an object needs to have in order to be acceptable.
> (optional, defaults to the largest integer number representable on the
> system)
>
> Is that, what you were looking for?
I checked it and unfortunately this is not what I need. Basically would it
work conveniently if you work with only one vector. But if you investigate a
buch of data in a batch any calculation will stop if only one vector is not
in the given range. Better would be a textual output. Therefore I think
something for the php file would make more sense. For example:
if "option is for test chosen" AND "numeric vector is in range" THEN "perform
test" ELSE "write 'Data not in Range'"
. Hope you get what I mean. Nothing difficult I think but I didn't succed with
the syntax so far.
More information about the Rkward-devel
mailing list