I’d be concerned that coyotes or a bobcat would get a goat or a pig. Goats and pigs are not going to guard your other animals against raccoons or anything else anyway.
I’d suggest a decent sized dog that can handle a coyote. You should be able to get one at the pound for little more than...