Hi there,

I've removed the earlier calculations I was trying yesterday, and I have removed my parameter/variable problem, but I am now getting the error "Error: object of type 'symbol' is not subsettable"
There are no warnings.

The nlmer code is now:
mixed_effects <- nlmer(RESPONSE ~ BOXCOXXY, AGEGRP4, AGEGRP5, AGEGRP6, AGEGRP7, AGEGRP8, RACE1, RACE3, WEEKEND, SEQ, RESPONSE + (1|SUBJECT),
                                                data=data0,
                                                start = c(AGEGRP4=Agegrp4Coeff, AGEGRP5=Agegrp5Coeff, AGEGRP6=Agegrp6Coeff ,AGEGRP7=Agegrp7Coeff ,AGEGRP8=Agegrp8Coeff,
                                                            RACE1=Race1Coeff , RACE3=Race3Coeff, WEEKEND=WeekendCoeff ,SEQ=SeqCoeff ),
                                                verbose = TRUE,
                                                nAGQ = 1,
                                                doFit = TRUE,
                                                weights = REPLICATE_VAR,
                                                contrasts = NULL,
                                                model = TRUE)
---------------------------------
The traceback() result is:
5: notnull(x$formula)
4: formula.default(object, env = baseenv())
3: formula(object, env = baseenv())
2: as.formula(formula[[2]])
1: nlmer(RESPONSE ~ BOXCOXXY, AGEGRP4, AGEGRP5, AGEGRP6, AGEGRP7,
       AGEGRP8, RACE1, RACE3, WEEKEND, SEQ, RESPONSE + (1 | SUBJECT),
       data = data0, start = c(AGEGRP4 = Agegrp4Coeff, AGEGRP5 = Agegrp5Coeff,
           AGEGRP6 = Agegrp6Coeff, AGEGRP7 = Agegrp7Coeff, AGEGRP8 = Agegrp8Coeff,
           RACE1 = Race1Coeff, RACE3 = Race3Coeff, WEEKEND = WeekendCoeff,
           SEQ = SeqCoeff), verbose = TRUE, nAGQ = 1, doFit = TRUE,
       weights = REPLICATE_VAR, contrasts = NULL, model = TRUE)

---------------------------------
I'm not sure what I have done wrong. Would someone mind pointing me to what I need to fix?

The results from str(data0) are:
'data.frame':   10287 obs. of  25 variables:
$ SUBJECT      : int  9966 9967 9970 9972 9974 9976 9978 9979 9982 9993 ...
$ RACE         : int  2 3 2 2 3 2 2 2 2 1 ...
$ RNDW         : int  26290 7237 10067 75391 1133 31298 20718 23908 7905 1091 ...
$ REPLICATE_VAR: num  41067 2322 17434 21723 375 ...
$ DRXTNUMF     : int  27 11 13 18 17 13 13 19 11 11 ...
$ REPEATNUM    : int  1 1 1 1 1 1 1 1 1 1 ...
$ FOODTYPE     : num  33.45 2.53 9.58 43.34 55.66 ...
$ RIAGENDR     : int  1 1 1 1 1 1 1 1 1 1 ...
$ RIDAGEYR     : int  39 23 16 44 13 36 16 60 13 16 ...
$ SUBGROUP     : int  6 5 4 6 3 6 4 7 3 4 ...
$ STRA         : int  2 2 2 2 2 2 2 2 2 2 ...
$ WKEND        : int  1 1 1 0 1 0 0 1 1 1 ...
$ R_ADD_SUG    : num  1 1 1 1 1 1 1 1 1 1 ...
$ SEQ          : Factor w/ 2 levels "0","1": 1 1 1 1 1 1 1 1 1 1 ...
$ WEEKEND      : Factor w/ 2 levels "0","1": 2 2 2 1 2 1 1 2 2 2 ...
$ RACE1        : Factor w/ 2 levels "0","1": 1 1 1 1 1 1 1 1 1 2 ...
$ RACE3        : Factor w/ 2 levels "0","1": 1 2 1 1 2 1 1 1 1 1 ...
$ AGEGRP4      : Factor w/ 2 levels "0","1": 1 1 2 1 1 1 2 1 1 2 ...
$ AGEGRP5      : Factor w/ 2 levels "0","1": 1 2 1 1 1 1 1 1 1 1 ...
$ AGEGRP6      : Factor w/ 2 levels "0","1": 2 1 1 2 1 2 1 1 1 1 ...
$ AGEGRP7      : Factor w/ 2 levels "0","1": 1 1 1 1 1 1 1 2 1 1 ...
$ AGEGRP8      : Factor w/ 2 levels "0","1": 1 1 1 1 1 1 1 1 1 1 ...
$ RESPONSE     : num  33.45 2.53 9.58 43.34 55.66 ...
$ YN           : num  1 1 1 1 1 1 1 1 1 1 ...
$ BOXCOXXY     : num  7.68 1.13 3.67 8.79 9.98 ...

Cheers
Michelle

UNCLASSIFIED

**********************************************************************
This email and any files transmitted with it are confide...{{dropped:12}}


