specify resistor name followed by three nodes



how to define in spice for specify resistor name followed by three
nodes, model name and a user
defined equation to get resistance value.

thanks in advance

.