Error in `missing(grp1sd) || is.null(grp1sd) || is.na(grp1sd)`: 'length = 71' in coercion to 'logical(1)'