The percentage of time in observed deep sleep and quiet sleep was correlated with both percentage sleep efficiency ( r = @ ) and fewer state shifts per hour ( r = -@ ) from electroencephalogram ( EEG ) .