File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,19 @@ This package implements:
44
44
## Installation
45
45
46
46
``` julia
47
- julia> ] add RobustModels
47
+ julia> ] add RobustModels;
48
+
49
+ # output
50
+
48
51
```
49
52
50
53
To install the last development version:
51
54
52
55
``` julia
53
- julia> ] add RobustModels# main
56
+ julia> ] add RobustModels# main;
57
+
58
+ # output
59
+
54
60
```
55
61
56
62
## Usage
Original file line number Diff line number Diff line change @@ -37,12 +37,12 @@ X 2.02857 0.200679 10.11 0.0005 1.4714 2.58575
37
37
─────────────────────────────────────────────────────────────────────────
38
38
39
39
julia> round.(stderror(ols), digits=5)
40
- 2-element Array {Float64,1 }:
40
+ 2-element Vector {Float64}:
41
41
0.78153
42
42
0.20068
43
43
44
44
julia> round.(predict(ols), digits=5)
45
- 6-element Array {Float64,1 }:
45
+ 6-element Vector {Float64}:
46
46
2.09524
47
47
4.12381
48
48
6.15238
@@ -61,7 +61,7 @@ julia> data[5, :Y] = 1; data
61
61
4 │ 4 8
62
62
5 │ 5 1
63
63
6 │ 6 13
64
-
64
+
65
65
julia> rob = rlm(@formula(Y ~ X), data, MMEstimator{TukeyLoss}(); σ0=:mad)
66
66
Robust regression with MM-Estimator(TukeyLoss(1.5476), TukeyLoss(4.685))
67
67
@@ -76,4 +76,3 @@ X 2.18005 0.14112 15.45 0.0001 1.78824 2.57186
76
76
─────────────────────────────────────────────────────────────────────────
77
77
78
78
```
79
-
You can’t perform that action at this time.
0 commit comments