Changes

Jump to: navigation, search

Rate of drop analysis

1,471 bytes added, 18:07, 1 April 2020
Created page with "==Purpose== To assess the initial response to insulin administration, you can calculate the slope of the line for the early timepoints in your insulin tolerance test. To do th..."
==Purpose==
To assess the initial response to insulin administration, you can calculate the slope of the line for the early timepoints in your insulin tolerance test. To do this, complete the following steps:

==Methods==
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%>%
filter(time=="0"| time == "30"| time =="45")

drop.data.lm <- lm (data = new.data.set, formula = ( glucose ~ time + treatment + time:treatment)

anova(drop.data.lm)

coefficients(drop.data.lm)
70
edits

Navigation menu