Data files used for the study "Variation in two phases of post-winter development of a butterfly", by Sandra Stålhandske, Karl Gotthard, Diana Posledovich and Olof Leimar. The package contains two data files in tab delimited text format and the R code for the linear models as well as the R file for comparison between males and females. A zip archive with files relating to the the fitting of weight loss models, including R scripts, Stan scripts, and output from the Stan MCMC analyses is also provided. A separate ReadMe file is included in the zip archive for the files included there. File: "postdia_data.txt" The file contains weights of individual pupae through post-diapause development, from removal from cold treatment to hatching. Column headings: country: Country of origin. 1 = Sweden, 2 = the United Kingdom locality: Locality of origin 1 = North Sweden 2 = Southern UK 3 = Central UK 4 = Northern UK 5 = Central Sweden 6 = South Sweden sex: Sex of individual 1 = female 2 = male temp_treatment: Temperature treatment temp: Measured average temprature in the cabinet ind_id: ID code num_id: Numerical ID day: Day(s) in treatment weight: Weight of individual in g hatch_day: Duration (in days) of post diapause for the individual File: "postdia_dev_r1_r2.txt" The file contains parameters for two-phase post-diapause development for each individual. Column headings: num_id: Numerical ID ind_id: ID code w0_ave: model fitted estimated intital weight: average w0_med: model fitted estimated intital weight: median w0_cil: model fitted estimated intital weight: lower confidence interval limit w0_ciu: model fitted estimated intital weight: upper confidence interval limit l1_ave: model fitted estimated intial gradient of weight loss: average l1_med: model fitted estimated intial gradient of weight loss: median l1_cil: model fitted estimated intial gradient of weight loss: lower confidence interval limit l1_ciu: model fitted estimated intial gradient of weight loss: upper confidence interval limit l21_ave: model fitted estimated difference between first and second gradient: average l21_med: model fitted estimated difference between first and second gradient: median l21_cil: model fitted estimated difference between first and second gradient: lower confidence interval limit l21_ciu: model fitted estimated difference between first and second gradient: upper confidence interval limit p1_ave: model fitted estimated proportion in phase one: average p1_med: model fitted estimated proportion in phase one: median p1_cil: model fitted estimated proportion in phase one: lower confidence interval limit p1_ciu: model fitted estimated proportion in phase one: upper confidence interval limit country: Country of origin. 1 = Sweden, 2 = the United Kingdom locality: Locality of origin 1 = North Sweden 2 = Southern UK 3 = Central UK 4 = Northern UK 5 = Central Sweden 6 = South Sweden sex: Sex of individual 1 = female 2 = male temp_treatment: Temperature treatment temp: Measured average temprature in the cabinet hatch_day: Duration (in days) of post diapause for the individual r rate of development (overall, post diapause development) r1 rate of development in first phase r2 rate of development in second phase k r1/r2 File: "analysis_postdia.R" R code for Anova and planned comparison analysis of post-diapause development data in a text file. FILE: "male_female_comp.R" R code for comparing parameters of post.winter development in males and females.