Hi, Another possibility is to use the combinations function in the gregmisc package, which has an option repeats.allowed. Sorry for not including the original post, but I had deleted it from my mailbox earlier in the day. HTH, Dennis