Should I go for F2 or B2?

My wife is graduating this May. I want to attend her graduation and also spend time with her for a month or so. Which visa should I apply F2 or B2?. I applied for F1 visa last year and got rejection twice. Will that effect present scenario?