I am trying to estimate the Usual intake, Estimated Average Rate (EAR), and UL of Magnesium by using NCI method. Since the recommended EAR and UL level of Magnesium are the same for most of the age groups ( 350 mg), I decided to account "total magnesium intake (food + supplement)" to estimate the EAR and use " magnesium intake only from supplement " to estimate the UL. I was successful in estimating the EAR percentage, but the syntax did not work for the UL (I just replaced the variable which represents the dietary supplement intake of Magnesium instead of total".  Here is the syntax I used for the UL:

"%nci2015(data = master.nci, response = vsddmag, WTS = WTS_M, BSW=BSW,nBSW= 500,

foodtype = MAG, subject = sampleid, repeat = suppid, covars_prob=, covars_amt = FSDDEKC,

outlib = work,pred = _pred_unc_magnesium, param = _param_unc_magnesium, modeltype = amount, lambda = , seq = suppid, weekend = ADMFW, vargroup =, numvargroups = subgroup=DHHDDRI, start_val1 = , start_val2 = , start_val3 = , vcontrol = , nloptions = ,titles = , printlevel = 1, cutpts = 500 1000, ncutpts = 2, nsim_mc = 100, add_da = nci_supp ,EAR = mag_EAR, UL = mag_UL, seed = 0, mcsimda = usual_intake_mag, wkend_prop = 3/7, byvar = , final = final, address = P:\NCI\practice\);

I would really appreciate it if anyone can help me with this issue.

Thanks,

Elsa

More Pardis Keshavarz's questions See All
Similar questions and discussions