f.assignmentType function

Calculate type of assignment to intervention in a study