Events encoded as factors