factorial to degree script
I'm having a hard time making factorial to degree inside of a script in order to assign certain DOE factors to some factorial.
I can get the first level with nchoosekMatrix() but can't figure out how to dynamically get levels higher than 1.
Names default to here(1);
factorial_to_degree = function({factors, degree = 2, termlist = {}},
{DEFAULT LOCAL},
if(degree!=1,
termlist = recurse(
...
