How can I calculate transfer function of Boost converter considering all resistances?
There are several ways to reach your goal which is to determine the control-to-output transfer function of the CCM boost converter including various losses. The easiest and most straightforward way is to use the inductor volt-seconds balance law. From there, if you determine the inductor bias during the on- and off-times including \$r_{DS(on)}\$, the diode \$V_f\$ and the rest of ohmic losses, it's not too complex. However, you will get the dc transfer function only (from which you can get the dc gain \$H_0\$ if you want). Look at the below picture to see how to do it:



Now, if you want to determine the dynamic response of the boost converter considering all these losses, I would suggest to study an APEC seminar given in 2013 which uses the PWM switch model. The model can be easily be rearranged to include various losses to account for semiconductor properties like diode drops or MOSFET \$r_{DS(on)}\$. The PPT for the CCM boost small-signal analysis is here:

http://cbasso.pagesperso-orange.fr/Downloads/PPTs/Chris%20Basso%20APEC%20seminar%202013.pdf 

The APEC 2014 and 2015 APEC seminars carry on with small-signal analysis also. They are available from the same page:

http://cbasso.pagesperso-orange.fr/Spice.htm

and the book which describes the lossy PWM switch models is here:

https://www.amazon.com/Switch-Mode-Power-Supplies-Second-Edition/dp/0071823468/ref=pd_sim_b_5?ie=UTF8&amp;refRID=08N1PQ31Z26697R4TGWV.