I've seen some sentences end with particles like が and で. The most common particle that I see is に. For example, if someone asked:
どこにいる? → Where are you?
I could reply,
友達{ともだち}の家{いえ}に → (I'm at) my friend's house.
I'm still lost on the particles で, and が. Help would really be appreciated if someone could explain how those two particles are used at the end of a sentence.