private void setVariables(Object responses, int type){
        
        // Set group names
        if(!this.groupNamesSet){
            this.groupNames = new String[this.nGroups];
            for(int i=0; i<this.nGroups; i++){
                this.groupNames[i] = "group " + (i+1);
            }
        }

        // Store entered data
        this.originalData = (Object)Conv.copy(responses);
        this.originalDataType = type;
        this.dataEntered = true;
        
        // Convert data type to double and/or BigDecimal
        this.convertDataType(type);
    }