When doing retrospective application for change in accounting principle
You use the beginning retained earnings account from the earliest period possible.
When making error corrections
You adjust beginning retained earnings in the year of corrections & the account in error.
Pretax income for accounting errors & changes
Basically income statement shit does not affect retained earnings, but balance sheet shit does.
What is a Prior period adjustment for
It’s for a correction of an error not a change in accounting principle.