hagenaue / bHRbLR_Enrichment_Stress_BehaviorAndHormoneData

Code used for the analysis of behavioral and hormonal data within the publication "Adolescent environmental enrichment induces social resilience and alters neural gene expression in a selectively bred rodent model with anxious phenotype" by O'Connor, Hagenauer, et al.
1 stars 0 forks source link

Deal with bug in Intercept/slope calculations #4

Open hagenaue opened 4 years ago

hagenaue commented 4 years ago

Not all social defeated animals have day 1 data

hagenaue commented 4 years ago

I fixed this in the code and reannotated to reflect the changes.

hagenaue commented 4 years ago

... but I still need to re-output the downstream graphs to reflect the changes.

hagenaue commented 4 years ago

Fixed the same bug in the code subsetting the long version of the time series data to only include subjects with video recorded social defeat data (in preparation for running multilevel modeling).

hagenaue commented 4 years ago

Fixed the same bug in the code subsetting the long version of the time series data to only include subjects with video recorded social defeat data (in preparation for running multilevel modeling).

... and then realized that was a mistake and reverted to the old version of the code.

hagenaue commented 4 years ago

I found the same bug in the time series plotting code. It made it so that any of the subjects with missing values for Day 1 of social defeat were not being plotted. It's fixed now.