Resident alien with foreign income and nonresident wife
I am on F1 visa and I am considered a resident alien because I stayed in US from 1997 to 2001 on F1 visa and beginning 2007 until now also on F1 visa. In 2008, I earned income in the US and was still receiving income from my home country. My wife is working in US but she's a nonresident. We have two children who stayed for 7 months with us in the US.
My question is am I really considered a resident alien or a non resident alien? Do I have a choice here? I can't decide whether its better to file as non resident alien and file separately or file as resident alien and file married jointly with wife. Would she be eligible since she's a non resident? And our children have no ssn, so they are not considered our dependents, right?
Thank you in advance.