Is there a way to create $2^n$ factorial designs in r (similar to minitab)

I am working on creating a $2^n$ design (not randomized). I have done $2^5$ by hand, but I must now do $2^7$ and $2^8$. I know in Minitab there's a design generator that will list out all of the treatments / factors but I do not have access to Minitab. Is there an R package that will do the same thing?

For example, if said dream function was called "2n" and I input:

2to2 <-- 2n(2) 

or something, the output would be:


A   B  AB
0   0   1
1   0   0
0   1   0
1   1   1 

....does that make sense?

edited to add: I see the FrF2 package, but I can't seem to get a good grasp of it. anyone familiar with it or others?

SOLVED: FrF2(nfactors = 8, resolution=8, randomize=FALSE)


This kind of question you can answer by yourself by going to CRAN, look at the taskviews (they are in the sidebar, near the top), and choose the ExperimentalDesign taskview.

Then you will find that package DoE.base probably will do what you want, there are some other packages you can look into as well, so as: FrF2 BHH2

You should take a look at this packages in the order I have given here!

Need Your Help

I can't debug on an Android device on Ubuntu running on WMware

android ubuntu vmware

I'm asking the question here and not in AskUbuntu because I hope I'll find some Android developers that have already had this problem.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.