A method of determining the effect of formation porosity on formation resistivity and parameters derived from the formation resistivity is described, including the step of determining for a depth interval a heterogeneity measure; and using a pre-defined relation to transform the heterogeneity measure into an algebraic term determining the effect of the formation porosity on the formation resistivity, based for example on Archie's law or similar relations.