if weights=NULL, do not calculate se