I did a quick google search and it appears that the lavender oil is used as a rodent repellent.
Yet there is a study on lavender and calming rats or affecting their serotonin levels, increasing it.
So... ya, I don't know. I personally wouldn't do it.