Changes

Rate of drop analysis

9 bytes removed, 13:52, 1 September 2022
no edit summary
1. First, filter your ITT data to contain only the observations from where animals are in the initial drop of the experiment. This is usually 30-45 minutes, but you should assess this for each ITT yourself.
2. You then need to construct a linear model for your data. It should include 1 covariate for every experimental variable (eg, time, genotype, sex, diet, injection). You should also include an interaction variable for time and the variable of interest. This will be the crucial value that you interpret different slopes of the initial drop from.
3. After creating the model, you will need to assess the significance of that model. Do this using the anova command in R. This will give you the covariate p values.
4. Next, to find the beta estimates, you will need to run the coefficient command in R. This will tell you the actual changes in glucose (mg/dL) for each covariate. The beta coefficient of interest is the one corresponding to the interaction variable you coded in step 2.
==Sample R Code==
new.data.set <-original.data.set%>%
70
edits