Most states consider you a resident when you begin working and paying taxes there. Also, having a bank account or a driver's license, or registering a vehicle indicate residency.
Here's info from the PA state website to help you:
http://www.scsc.pa.gov/Job-Seekers/Pages/PA-Residency-Information.aspx
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"