<br><br><div><span class="gmail_quote">2007/4/19, Thomas Friedrichsmeier <<a href="mailto:thomas.friedrichsmeier@ruhr-uni-bochum.de">thomas.friedrichsmeier@ruhr-uni-bochum.de</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Ilias,<br><br>On Saturday 14 April 2007 10:42, I. Soumpasis wrote:<br>> I uploaded a new plugin, the crosstabs plugin. I wait for recommendations,<br>> corrections etc.<br><br>ok, I had a first look at the plugin. Certainly a rather important one.
<br><br>Some rather general comments:<br>1) The barplot functionality should be made an embedded plugin so the code can<br>be shared between the standalone barplot and this one. If you don't know how<br>to approach this, I can take a look, later, but if you have the time to look
<br>at this, that would certainly be good.</blockquote><div><br>That was my thought in the first place but did not know how to do it and I was in great harry to get results for the data I had.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2) Same actually for the chisquare test, except we don't have this as a<br>standalone plugin, yet.</blockquote><div><br>I agree on this too but still do not know how to do it. <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
3) Perhaps the most basic: table() will happily take any number of arguments.<br>Barplot and chisquare will only work on two-dimensional tables, but the<br>crosstabulation itself is not limited in this way. We could make it so that
<br>the chisquare and barplot options are only available if there are no more<br>than two objects selected (I'll need to add some simple C code to make this<br>possible). Would this sound like a good solution?</blockquote>
<div><br>Here are my thoughts. (Limited responsibility, because there is some time passed since I wrote it nd I do not remember all the things I thought then plus I do not have an SPSS right now). <br>1. A small problem we have to see. If we use more than two variables the format of the result changes. As I remember of the SPSS crosstabulation they have one dependent and many independent variables. In this way we could crosstabulate the dependent with each independent and then put them in a table. Do you find this a sound solution?
<br>2. SPSS also does one barplot for every crosstabulation. With the above solution is easiest to be done for ever pair dependent-independent we have. The only minus is that we have to stop offering preview, something  logical because here we have an analysis, not a plotting plugin.
<br>3. Same with chisquare test.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">4) Some of the code in the PHP file should be moved to the calculate section.
<br><br>5) You can directly use the xy object also for the chisq.test.<br><br>6) Don't be afraid to create temporary variables any more. Esp. for the<br>chisq.test(), it is not necessary to actually calculate the test three times.
<br>I suggest rewriting this to:<br><br># in calculate()<br>chisqres <- chisq (xy)<br><br># in printout()<br>rk.results (list<br>('Statistic'=chisqres$statistic, 'df'=chisqres$parameter, 'p-value'=chisqres$p.value))
</blockquote><div><br>Yes you are right, but I will wait for what we are finally going to do with the whole plugin. <br></div><br></div><br>Regards,<br>Ilias<br>