Hey Keith,
I'm looking over the data now. Several of the variables in your data set are highly correlated with each other. Without knowing exactly what each header means, I get the idea that some columns are multiples of other columns. ISAmtAdj is related to ISConcAdj. ResponseAdj is related to AmountAdj. DMIAmtAdj is related negatively to Level, AmountAdj, and STDAmtAdj.etc.
What is your response variable in this data? I'd assume Level or AmountAdj.
To me, it looks like ISConcAdj and ResponseAdj might be the only 2 factors to regress against Level/AmountAdj.
Does that sound about right to you?
I see that you told Eric you are running Y = Conc + Conc^2 + Other. When you include a quadratic term in your model, you will have issues with a high VIF. This can bring up an issue with your model. Something I have found that helps this issue is to subtract the mean of the conc and create a new factor, "centered conc" (CC). Then try running a new model with Y = CC + CC^2 + Other.
Also, are you randomly choosing what samples to look at? The data set you shared has 72 data points. Some of the models seem to indicate that groups of say 12-15 are run under similar circumstances at the beginning.
Something I found I had to do with my instruments was to randomize the order of the standards and run them on different days. So, if I had standards 1, 2,3, 4, 5, I'll run them 1,3,5,4,2, then 4,3,5,1,2.... I've noticed most (by most I mean all that I tested) of my instruments tend to add a bit to the response as the day goes on.
I look forward to your answers.
------------------------------
Andrew Ekstrom
Original Message:
Sent: 02-15-2016 21:57
From: Keith Chamberlain
Subject: F value needed to overcome loss in df
Dear Andrew, thank you for your reply.
I'm calibrating a residual solvents static headspace experiment and have found that there is no such thing as static, if I look at the ppm difference in model predictions between a model that takes the headspace volume into account and one that doesn't. I've also found that generally for calibrations, if enough points are used, there is a violation of equal variance across the calibrated range, so I've had to use transforms also. I'm using "Static headspace has chromatography, 2nd ed" by Bruno Kolb and Leslie Ettre as my seminal work. "Data Analysis: A model comparison approach 2nd ed.", by 'Chick' Judd, Gary McClelland & Carry Ryan. Several Pharma method validation books that turn out to be very weak on their stats. AAC0215 Shared.csv
Sincerely,
KeithC.
------------------------------
Keith Chamberlain
Analytical Chemist
Original Message:
Sent: 02-14-2016 04:08
From: Andrew Ekstrom
Subject: F value needed to overcome loss in df
What type of calibration are you working on? What book(s) are you using for reference?
One of the data sets I worked with allowed me to "correct" data that was "outside the lines" on the QC chart. I created a model that included 2 factors for my test, run position and "day". Run position is the number of the sample I ran that day. Day is a generic term for what ever day I ran the sample on. Since there is no reason for "Tuesday" to always be biased in one direction and "Wednesday" to be biased in another direction, I just called them 'day'. What I found was that each day has a new starting point. But, the increased reported response was about 0.50% per sample I ran. So, Run #1 might be 7.00. Run #10 would be 7.00 + 10*(0.5% of 7.00) or about 7.35. By subtracting the average increased response and the daily bias, I was able to decrease the standard deviation of my samples by 50%.
There is a trick you can use to reduce some of the correlation among different terms in a model. It goes by a few different names. I think "centering" is most appropriate. You basically subtract the mean of a factor from every value in that column. If you have a quadratic term in the model, you then create a quadratic term from this "centered" factor.
For example, suppose you have the (X, X^2) pairs of data: (0,0), (2, 4), (4,16), (6, 36), (8, 64), (10,100)
If you center your 'X' values, you get -5, -3, -1, 1, 3, 5. Your new X^2 values are 25, 9, 1, 1, 9, 25. The VIF for the original values are high. The VIF for the "centered" values are now 1.00.
It would surprise me if you could share the data you are working on with us. Would it be possible to share "similar" data? If you take your original data, both the independent and dependent variables and divide it all by some value, known only to you, should give us an idea about what type of issues you will have and the data will be sufficiently different that you won't give away any important info.
For example, your factor levels could be 0.05ppb, 0.10ppb, 0.25ppb, 0.50ppb, 1.00ppb and the new levels could be 1.00, 2.00, 5.00, 10.00, 20.00. The new response could be 20*original or keep the original response the way it is.
BTW, have you decided if you want to pursue a degree in stats or a related area? If you are working as a chemist in industry, it might make sense to go for an MS in Industrial Engineering and focus on quality control/reliability. Despite the old BASF tagline, IE's really are the one's that, "Make the products you buy, better." It's also best to get them involved early on.
------------------------------
Andrew Ekstrom