vish14184 ★ India, 2008-06-04 09:05 (6182 d 16:00 ago) Posting: # 1906 Views: 17,975 |
|
Dear All, Kindly let me know, how can we apply weighting factor for calculation of Back calculated concentration in excel sheet. If any formula is available, let me know how can we proceed? thank you Regards Vishal Nakrani |
JPL ☆ Vienna, 2008-06-04 12:53 (6182 d 12:12 ago) @ vish14184 Posting: # 1908 Views: 16,173 |
|
Dear Vishal, as we don't know what kind of back-calculation you mean, could you provide a short example? Regards, JPL |
vish14184 ★ India, 2008-06-04 13:36 (6182 d 11:29 ago) @ JPL Posting: # 1910 Views: 16,311 |
|
Dear Sir, In Bio Analytical phase we plotting linear curve aplying weighting factor (e.g 1/A or 1/A2) & Get equation in y=mx+c Format. using this equation instrument software (HPLC or LC-MS/MS) calculate unknown concentration of sample using Peak area or Peak area Ratio. I want to calculate unknown concentration in excel sheet but i dont know how to apply weighting factor in Excelsheet. Let me know if any other software available for this calculation. -- Edit: Full quote removed. Please see this post! [HS] |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2008-06-04 14:57 (6182 d 10:08 ago) @ vish14184 Posting: # 1912 Views: 16,776 |
|
Dear Vishal! ❝ In Bio Analytical phase we plotting linear curve aplying weighting factor (e.g 1/A or 1/A2) & Get equation in y=mx+c Format. If your model is y=mx+c, your weighting factors probably are 1/x or 1/x2. ❝ I want to calculate unknown concentration in excel sheet but i dont know how to apply weighting factor in Excelsheet. OK, a little bit of terminology first. What we are interested in is calibration, which in statistical terms is called “inverse regression”. Most literature is dealing with true “regression”, which after getting the parameters of the model (if it’s linear: slope and intercept), gives predictions of y for a given x. In inverse regression we want to make predictions of x from y. So once your model’s parameters are established, back-calculation (irrespective of the weighting scheme) is always x = (y – intercept) / slope. Example: model: y = 1.0000 + 2.0000 * x + error Lesson learned from the example: although unweighted linear regression gives the best estimates of slope and intercept in terms of bias, 1/x2 is the best weighting scheme in terms of bias of back-calculated responses (inverse regression). ❝ Let me know if any other software available for this calculation. Excel is an expensive toy I would only recommend for home-based statistics (remember: you have to validate it – good luck with Excel). All statistical software packages can do the job. WinNonlin, Stata, NCSS, Statistica, SPSS, Minitab, Systat, S-Plus, SAS, or my personal favorite R (freeware),… — Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
vish14184 ★ India, 2008-06-05 10:57 (6181 d 14:09 ago) (edited on 2008-06-05 11:47) @ Helmut Posting: # 1923 Views: 15,916 |
|
Dear All, Thank you very much for your reply but still i am confused. if,
A B I got y=0.1314x+0.1217 (y= mx+c) equation and R2 0.9925 using excel sheet. Now i want new y= mx+c equation by applying Weigting factor (1/x or 1/x2) using above data in excel sheet. Is it possible in EXCEl? If possible, which equation obtain using above data and How can i obtain this equation? Regards, Vishal Nakrani -- Edit: Reformated using BBCodes. [Jaime] |
Helmut ★★★ ![]() ![]() Vienna, Austria, 2008-06-05 17:12 (6181 d 07:53 ago) @ vish14184 Posting: # 1925 Views: 16,554 |
|
Dear Vishal! ❝ I got y=0.1314x+0.1217 (y= mx+c) equation and R2 0.9925 using excel sheet.
❝ Now i want […] in excel sheet. Have you read my last post – especially about validation? ❝ Is it possible in EXCEl? ![]() Why do you want to stick with this awful piece of software? Just to give you an idea how your problem would look in R:
x <- c( 1, 2, 4, 8, 10 ) # concentrations In the first three lines input from external files are possible as well (plain text, Excel ![]() If you replace model1 in the results section with model2 and model3 , respectively, you'll get results for w=1/x and w=1/x2.Output looks like this:
Call: If you want to go with a quadratic model, use
model4 <- lm(y ~ x + I(x^2)) and in the result section e.g.
if(coef(model4)[3]<0) { There are two possible solutions for the square root depending on the sign of the quadratic parameter (the third coefficient); if the value is exactly zero, the model should reduce to the linear case. Since this sniplet is just quick and dirty I leave the homework to somebody else. ❝ If possible, which equation obtain using above data and How can i obtain this equation? Even in Excel it’s possible to get weighted regressions running. For formulas see e.g. Draper/Smith (Applied Regression Analysis, Wiley, 3rd ed, 1998) or Miller/Miller (Statistics and Chemometrics for Analytical Chemistry, Pearson, 5th ed, 2005). Of course you will have to struggle with a spreadsheet which is not suitable for this kind of job (it’s like writing a letter instead by means of a word+processor in Adobe’s Photoshop). BTW, a linear model is wrong for your example’s data. You have to justify the model, which for your data is simply not linear at all. A plot of residuals (ycalc - yobs) vs. x would have shown a nice parabola – where we expect a random arrangement independent from x. The residuals show a pattern [–+++–] of 3 runs (changes of sign). Back-calculated x are biased within the range -40.5% to +9.81%. Weighting improves this mess a little (1/x: -18.6%, +12.9%; 1/x2: -9.83%, +13.8%), but according to residual analyses it's the wrong model. Guidelines call for a justification, because if you apply a wrong model you will
According to AIC (Akaike’s Information Criterion) and back-calculated x the best model is the quadratic one with w=1/x2: y=0.001814+0.2070x-0.006936x2. You can easily compare models by an F-test, e.g.
anova(model3, model6, test="F") getting
Analysis of Variance Table But even the unweighted quadratic is by far better than any weighting scheme applied to a linear model. Your example shows the importance of analyzing residuals – not only plotting x vs. y as you have stated in your second post. — Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
Jaime_R ★★ Barcelona, 2008-06-04 15:18 (6182 d 09:48 ago) @ vish14184 Posting: # 1913 Views: 16,080 |
|
Dear Vishal! ❝ If any formula is available, let me know how can we proceed? No difference to unweighted, i.e. – according to your terminology x = (y - c) / m, only the parameters (c = intercept, m = slope) you have obtained with unweighted, w=1/x, w=1/x2 will be different.— Regards, Jaime |