Late to the party:
   rmEntry=: ([: -. [: +./ [: ; (1 2;2 1;0 3;3 0) E.&.> <)"1
   (] #~ rmEntry) (i.!4) A. i.4
0 1 3 2
0 2 3 1
1 0 2 3
1 3 2 0
2 0 1 3
2 3 1 0
3 1 0 2
3 2 0 1


On Mon, May 25, 2020 at 5:35 PM Skip Cave <s...@caveconsulting.com> wrote:

> The perm in the addon library is dyadic:
>
> 2 perm 4
>
> 0 1
>
> 1 0
>
> 0 2
>
> 2 0
>
> 0 3
>
> 3 0
>
> 1 2
>
> 2 1
>
> 1 3
>
> 3 1
>
> 2 3
>
> 3 2
>
> Skip Cave
> Cave Consulting LLC
>
>
> On Mon, May 25, 2020 at 4:23 PM Skip Cave <s...@caveconsulting.com> wrote:
>
> > Actually you can just say load 'stats' and get perm, comb, and much more.
> >
> > When I do a Google search on: site:jsoftware.com perm
> > I get: https://code.jsoftware.com/wiki/Addons/stats/base/sampledesign
> >
> >
> > Skip Cave
> > Cave Consulting LLC
> >
> >
> > On Mon, May 25, 2020 at 4:05 PM Ric Sherlock <tikk...@gmail.com> wrote:
> >
> >> Skip, that seems like a very old version of the stats/base addon?
> >> According to GitHub the sampledesign script was renamed to combinatorial
> >> back in 2008.
> >> perm is currently available in ~addons/stats/base/combinatorial.ijs
> >> (stats/base/combinatorial)
> >>
> >> On Tue, May 26, 2020 at 8:45 AM Skip Cave <s...@caveconsulting.com>
> >> wrote:
> >>
> >> > Perm is in Addons/stats/base/sampledesign.
> >> >
> >> > perm
> >> >
> >> > 3 : 0
> >> >
> >> > z=. i.1 0
> >> >
> >> > for. i.y do. z=. ,/ (0 ,. 1 + z) {"2 1 \:"1 = i. 1 + {: $z end.
> >> >
> >> > :
> >> >
> >> > ,/ ({~ perm@#)"1 x comb y
> >> >
> >> > )
> >> >
> >> >
> >> >
> >> > Skip Cave
> >> > Cave Consulting LLC
> >> >
> >> >
> >> > On Mon, May 25, 2020 at 3:23 PM Brian Schott <schott.br...@gmail.com>
> >> > wrote:
> >> >
> >> > > Skip,
> >> > > I am having trouble finding perm.
> >> > > I tried using A. in its place, but did not succeed.
> >> > > But I think I see where you were going. Good idea.
> >> > >
> >> > > On Mon, May 25, 2020 at 2:54 PM Skip Cave <s...@caveconsulting.com>
> >> > wrote:
> >> > >
> >> > > > ssmb=:+./@E.
> >> > > >
> >> > > > l21=.-.1 1 ssmb"1+./"2]1 2=/"1 n=.perm 4
> >> > > >
> >> > > > l30=.-.1 1 ssmb"1+./"2]0 3=/"1 n
> >> > > >
> >> > > > n#~l30*.l21
> >> > > >
> >> > > >
> >> > >
> ----------------------------------------------------------------------
> >> > > For information about J forums see
> >> http://www.jsoftware.com/forums.htm
> >> > >
> >> > ----------------------------------------------------------------------
> >> > For information about J forums see
> http://www.jsoftware.com/forums.htm
> >> >
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> >>
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


-- 

Devon McCormick, CFA

Quantitative Consultant
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to