brsr / tsk Goto Github PK
View Code? Open in Web Editor NEWTrimmed Spearman-Karber Method
License: GNU General Public License v3.0
Trimmed Spearman-Karber Method
License: GNU General Public License v3.0
Dear Brenton,
I got two questions here:
First of all, in tsk::tsk(), you smooth the data (of course only when the data do not show monotonically increasing trend) before doing the Abbott's correction of the control response (when control response is not 0). Shouldn't the Abbott's correction be done before smoothing?
In tsk::tsk(), smoothing using gpava() will sometimes result in a smoothed control p different from the original control p.
# Correct for the control dose.
data.smoothed$p <- (data.smoothed$p-control)/(1-control)
Then you correct the smoothed data with the original control p based on Abbott's formula. It will not normalize the smoothed corrected control p to 0, likely leading to biases in the results.
Secondly, in the ecotoxicology::TSK(), after Abbott's correction, sample size (n) for all groups is also corrected to n_i_-r[1], where ni is the sample size of each test group, r[1] is the number of original control response. I am not sure if it is correct to do this sample size correction, but would like to hear your opinion. Thank you very much!
Received by e-mail in February from Dr. Jerry Lewis:
Variance of m is calculated by noting that within each dose, the number of responders, X, is distributed binomial(n,P), where P is a monotonic function of dose. But, as noted in all editions of Finney (Statistical Method in Biological Assay), while p = X/n is unbiased for P, E[ p_(1-p)/n ] < P_(1-P)/n. You need p_(1-p)/(n-1) for unbiased estimation of P_(1-P)/n, which Finney used in his worked Karber example (omitted from 3rd ed). Without this modification, the Karber intervals seem too narrow when compared to the 50% horizontal slice through intervals from generalized linear models.
The original goal of this package was to replicate a program that used
According to the correction, the 0,5,10,20% trimmed TSK CI for dataset 1c in Table II is (39.14, 44.49), (39.86, 45.38), (39.51, 46.34) and (40.77, 45.17). However, the tsk package give results as following, (39.19, 44.44), (39.91, 45.32), (39.57, 46.26), and (40.81, 45.12). They are all very close but not identical or with negligible differences. Is there an explanation for this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.