blob: 7c9e55da85eda5d89368e64f98f7cb881adc8187 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
R version 3.1.0 (2014-04-10) -- "Spring Dance"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> require(chemCal)
Loading required package: chemCal
> data(din32645)
> m <- lm(y ~ x, data = din32645)
> inverse.predict(m, 3500, alpha = 0.01)
$Prediction
[1] 0.1054792
$`Standard Error`
[1] 0.02215619
$Confidence
[1] 0.07434261
$`Confidence Limits`
[1] 0.03113656 0.17982178
> lod <- lod(m, alpha = 0.01, beta = 0.5)
> lod(m, alpha = 0.01, beta = 0.01)
$x
[1] 0.132909
$y
1
3765.025
> loq <- loq(m, alpha = 0.01)
>
> proc.time()
user system elapsed
0.472 0.302 0.354
|