I've heard the sentence "一人でいるのが好きです", meaning "I like to be alone".

Is this a substitute of "です", could I for example say "学生でいるのが好きです"? If so,
how is it different from "である"?

Thanks in advance.
CC BY-SA 4.0
2020-06-15T15:41:09.147
78035
2020-06-15T15:41:09.147
39328
question
verbs nominalization
What does "でいる" mean?