create a specified linear model, transform some variables