Judy's link for permanent residency is good. Your only other options to stay are with the various visas (
****
/20 year Elite, LTR 10 year visa, Non O/OA); these all have varying requirements and allow residence in Thailand but not permanent residency.