constant likelihood currently looks for data in the global environment. This can easily be improved in the same way as the create_transform function