sl function

Set up smooth term with factor loading