RPI is a simple formula:
25% of your rating is based on your winning percentage.
50% is your opponents' winning percentage (not including games against you).
25% is your opponents' opponents' winning percentage (not including games involving you).
Also, when you see SOS listed, they are just adding the second two components I listed above related to opponents' record and opponents' opponents' record.
And depending on the RPI calculation, they factor in home and road differently. I believe on most they count road wins as 1.4 wins and road losses as 0.6 losses. Home wins count 0.6 wins and home losses count as 1.4 losses.
So, let's say you play 5 games, 3 at home and 2 on the road. You go 2-1 at home and 1-1 on the road. Your record is 3-2. However, your RPI record is 2.6-2.0.
2 home wins x 0.6 = 1.2 wins
1 road win x 1.4 = 1.4 wins
Total of 2.6 wins
1 home loss x 1.4 = 1.4 losses
1 road loss x 0.6 = 0.6 losses
Total of 2.0 losses
Neutral site games count as 1 win or 1 loss. And I believe some calculations have a Semi-Home and Semi-Road calcuation where the values change to 1.2 and 0.8 instead of 1.4 and 0.6. For instance, when we played Southern Miss in Biloxi, it was a Semi-Home game for USM since it wasn't on their home floor, but it was essentially a home venue for them. So, in beating us, they got 0.8 wins, and in losing, we got 0.8 losses.
I also believe that some formulas have some bonuses and such that you get for quality wins, etc., but I could be wrong about that. The most important thing to remember is that it obviously gets more accurate with more data. Right now, I guess our schedule or something is keeping our RPI relatively high, or the location of our losses. Who knows? It won't stay there long. We'll be outside the Top 100 eventually.