Will this help? I added 1u in formula if ratio have to set to 0 and 1 (prevent R1 or R2 equal 0 ohms).
A symbol can be created with is .subckt
.subckt VR + - out params: Rt=1k ratio=0.5
R1 + out (1-ratio)*Rt+1µ
R2 out - (ratio)*Rt+1µ
.ends VR
4 Likes
