When should a writer use a dash?

to indicate an abrupt shift in idea to indicate an abrupt shift in idea
to separate items in a list to separate items in a list
to separate clauses in a compound sentence to separate clauses in a compound sentence
to set off an introductory word or phrase

to set off an introductory word or phrase