Using batch mode of tau-argus for protecting already existing tables #10
|
Dear all, I try to write an executable batch file for protecting already existing tables. At the moment I test all the possibilities that tau-argus offer. I have several questions, I would like to ask. I hope someone can help me. I use tau-argus version 4.2.3 build 1. For explanation: My table includes the number of different types of vehicles for different German federal states. The first line of my input file includes “Fahrzeuge insgesamt”, which is the code for the total of my first explanatory variable vehicle (in German: Fahrzeuge) and Baden-Wuerttemberg is a German federal state. The third column shows the corresponding number of cases, here: 9 638 138. Q2: According to the manual 4.1, p.122 one can define lambda on the fifth position of the command with 1 as default value. I tried to define another value for lambda but always received the following error message (in the error message I tried to define lambda = 0). Under the assumption that I haven’t done anything wrong, I assume that SPECIFYTABLE interprets my input for lambda as part of the cost variable one can define on the fourth position of the command. Is this a bug or have I done something wrong? When I do not set lambda actively and only define the first four positions (explanatory variable, response variable, shadow variable and cost variable) the command works. Q3: In manual 4.1 on p.123 the option MOD of the command allows to define a maximum number of time per subtable. Just out of sheer curiosity: What happens if tau-argus need longer than the defined maximum time? Q4: At the moment I am able to implement a minimum frequency rule. Whenever I try to implement a minimum frequency rule and a p%-rule at the same time, I get the following error message. Alternatively, I tried to implement a minimum frequency rule and a p%-rule manually via the menu. When I define the response variable as numeric, then firstly, I am not able to set a minimum frequency rule anymore, and secondly, after defining a p-rule (e.g. P = 10 and n = 1) I get the following error message. I get the same error message when defining the response variable as frequency. In this case, however I am able to define a minimum frequency rule in addition to a p%-rule at least. Any help is greatly appreciated. |
Replies: 4 comments 2 replies
|
Hi Benjamin, first of all I think you will run into several problems when protecting frequency tables with TauArgus (instead of magnitude tables). At least that are our experiences. Q1) The call should look like “ExpVar1” “ExpVar2” | “Fallzahlen” | “Fallzahlen” | “Fallzahlen” in your case. The second "Fallzahlen" is the magnitude value (so its the same as your frequency if you don't have magnitude tables) and the third "Fallzahlen" describes the cost fiúnction. TauArgus tries to optimize the secondary suppression pattern according to the cost function (to reduce the costs). If we assume that you have more loss of information if you have larger frequencys, then you can just take your frequencys as cost variable. Q2) I think the value for lambda should be larger than 0. Tha lambda value specifies how the costs are calculated. The calculated costs should look like cost^lambda, so if you choose lambda = 0 then every cell would have the same costs of 1 after transformation. Maybe that doesn't make much sense. The threshold is lambda = 1 (everything stays just as you defined it). If you want to increase your probability that larger values get suppressed instead of smaller, you can choose a value between 0 and 1 (e.g. 0.2 or 0.8). Q3) The time you can specifiy in the MOD statement is just the time that is spent for every single subtable to be optimised. So if in the specified time there cannot be found the optimal solution, there should be at least a non-optimal solution for your problem. As far as the time limit you specify is just for subtables, the calculation time for a whole table can easily succeed that limit in case of executing hierarchical tables. Q4) Sorry, I have no answer for this since we don't aggregate our tables inside of TauArgus. Best, |
|
Hi Sven, thank you very much for your quick and detailed response! In the end I want to protect magnitude tables. But I thought I start with protecting frequency tables as a first step to learn how to write a batch file in tau-argus. I was successful in implementing a minimum frequency rule at least. The next step is to protect magnitude tables with a minimum frequency rule and a p%-rule combined. I have forgotten to mention that Q1/2 corresponds to an input data file with 2 explanatory variables and frequency as response variable. Q4/5 corresponds to an input data file with 2 explanatory variables, the magnitude as response variable, and 2 variables with frequencies of the 2 largest contributors. Best regards, |
|
Hi Benjamin, Concerning your remark Moreover, what do you mean by When there is no variable with the tag Note: Best, |
|
Hi Peter-Paul, as already mentioned in the other thread, your explanation solved my problem. I just want to respond to your note: FREQ(80,5) was intended. In the file that I used to test tau-argus, the lowest magnitude in a cell was 76. To see some results after applying safety rules I defined the minimum frequency rule to block all cells with less than 80 vehicles. Again, thank you very much for your help! Best, |




Hi Benjamin,
first of all I think you will run into several problems when protecting frequency tables with TauArgus (instead of magnitude tables). At least that are our experiences.
Q1) The call should look like “ExpVar1” “ExpVar2” | “Fallzahlen” | “Fallzahlen” | “Fallzahlen” in your case. The second "Fallzahlen" is the magnitude value (so its the same as your frequency if you don't have magnitude tables) and the third "Fallzahlen" describes the cost fiúnction. TauArgus tries to optimize the secondary suppression pattern according to the cost function (to reduce the costs). If we assume that you have more loss of information if you have larger frequencys, then you can just take your frequ…