variant function

Create a study's variant