8/30/2023 0 Comments Sas calculator![]() This code can be modified to use with other datasets that do not involve complex sampling designs. 2008 for a description and application of the population ratio method. To apply the population ratio method, the mean intake of the relevant food groups, nutrients and energy among the population of interest is calculated first then ratios of the means are calculated and compared with the applicable standards for scoring. In this code, a Monte Carlo simulation step is included for the calculation of standard errors. Because the HEI is a multi-dimensional construct involving multiple densities (amounts of food per 1,000 calories and ratios of fatty acids), a simple method for estimating standard errors is not available. The output includes mean component and total HEI scores for the population, along with their standard errors and confidence intervals. This approach has been shown to be the preferred method of estimating a population's mean usual HEI component and total scores on the basis of a single day of data, which is sufficient for this purpose. Mean HEI scores for a population, subpopulation, or group can be estimated using ASA24 data and the population ratio method. The ratio is compared with the HEI standard on a cup equivalent per 1000 kcal basis as are many HEI components. ![]() In this program, the cup equivalents of total fruit summed over x days is divided by the total energy summed over the x days: ![]() To calculate one HEI score per individual across all days of ASA24 recalls or records collected, even if some Respondents have varying number of intake days, including only one. ![]() To prevent this error, the observations with the longest ID length should be listed first when the data is imported into SAS. Note: Some users have found that these SAS programs will drop observations from the analysis if the ID field is not the same length for all observations. ASA24-2014 versions are different (2016 uses USDA's Food Patterns Equivalents Database or FPED, and 2014 versions use the MyPyramid Equivalents Database or MPED). Note that there are two SAS programs to calculate HEI-2010 because the pyramid equivalents databases for ASA24-2016 vs.For ASA24 users with 2011, 2012 or 2014 version data, a separate SAS program must be run to calculate Food Patterns Equivalents Database (FPED) values in order to use this code to calculate the HEI-2015.To calculate HEI scores for each intake day regardless of how many recalls or record days are available per person. In the 20 versions, there are two macros, one of which allows for the allocation of legumes (beans and peas) to count as part of the vegetable or protein food groups, and the other creates ratios and scores them using the applicable standards. For some applications, such as an analysis of the food environment, the scoring macro can be used (provided below). HEI-2015 includes only the macro for scoring, as legumes (beans and peas) are now allocated to both the vegetable and protein food groups. These macros can be used to calculate HEI–2015, HEI–2010, and HEI–2005 component and total scores and can be applied to any SAS dataset containing the requisite variables. Where possible, the zip files provided include sample SAS code, macros for scoring, and sample output. Cohort with food frequency questionnaire example: NIH-AARP Diet and Health Study: NIH-AARP. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |