You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/index.md
+5-19Lines changed: 5 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,28 +2,16 @@
2
2
CurrentModule = SurveyDataWeighting
3
3
```
4
4
5
-
# SurveyDataWeighting
5
+
# SurveyDataWeighting: Generating Sample Weights for a dataset
6
6
7
-
```@index
8
-
```
9
7
10
-
```@autodocs
11
-
Modules = [SurveyDataWeighting]
8
+
```@index
12
9
```
13
10
14
-
# Generating Weights for a dataset
15
-
16
-
17
-
This generates weights for a sample dataset such that weighted sums of dataset
18
-
columns match some set of targets. For example, you might want to weight a
19
-
dataset so that it matches known amounts of benefit receipts or numbers of
11
+
This generates weights for a sample dataset such that weighted sums of dataset columns match some set of targets. For example, you might want to weight a dataset so that it matches known amounts of benefit receipts or numbers of
20
12
households in different regions of a country, or both.
21
13
22
-
A commercial product [Calmar](http://vesselinov.com/CalmarEngDoc.pdf) is
23
-
available for this, and widely used, but there are many advantages in having a
24
-
version that you can easily embed in a simulation program. It can be very useful
25
-
for producing forecasts, for example; see the papers by Reed and Stark and
26
-
Creedy in [the bibliography](biblio.md).
14
+
A commercial product [Calmar](http://vesselinov.com/CalmarEngDoc.pdf) is available for this, and widely used, but there are many advantages in having a version that you can easily embed in a simulation program. It can be very useful for producing forecasts, for example; see the papers by Reed and Stark and Creedy below.
27
15
28
16
The routine calculates a set of weights that are closest in some sense to an
29
17
initial set of weights such that, when summed, the weighted data hits the
@@ -44,8 +32,7 @@ function doreweighting(
44
32
tolf ::Real=0.000001 ) ::Dict{ Symbol, Any }
45
33
46
34
```
47
-
See the [testcase](../test/reweighter_tests.jl) for a simple example, based on
48
-
examples from the Creedy paper.
35
+
See the for a simple example, based on examples from the Creedy paper.
49
36
50
37
The form of 'closeness' used is determined by the `functiontype` parameter of
51
38
enumerated type `DistanceFunctionType`. See the [Creedy and Deville and
@@ -63,7 +50,6 @@ Modules = [BudgetConstraints]
63
50
[:constant, :type, :function]
64
51
```
65
52
66
-
67
53
## TODO
68
54
69
55
* I really need to use standard Julia optimiser packages, such as [Optim.jl](https://github.com/JuliaNLSolvers/Optim.jl). I was pushed for time, though;
0 commit comments