Not sure about that.
Yes indeed someone can change from eg tourist visa to non O retirement.
Not sure if someone can change to non O as a dependent.
Here is thread discussing non Thai wife options to piggyback on husbands retirement visa.
Ubonjoe replies seem to indicate that the wife would need to obtain non O outside of Thailand.