Degrees of freedom with raw data