Hallo zusammen,
ich habe eine kurze Frage: Ich habe eine kleine Auswertung gemacht - wie viele Personen Renten kaufen - und will diese in einer Tabelle abbilden. Leider geht es nicht mit dem normalen "tabulate" Befehl, da ich noch eine Zähl-Bedingung eingebaut habe und dadurch verändern sich die Ergebnisse!
Wisst Ihr, ob es trotzdem mit dem "tabulate" Befehl möglich ist oder kann ich die Ergebnisse (skalare) in einem Vektor abbilden? Vielleicht kennst du noch eine andere Möglichkeit...
Der Code zu meiner Frage
[ ** P( Excellent || annuities )
. count if h6hhidlevel==1 & HQ184M1 ==2 & r6shlt==1
{res} 18
{txt}
{com}. sca p1= r(N)/hhidpn_total
{txt}
{com}. sca list p1
{txt} p1 = {res} .00145737]
** P( very good || annuities)
. count if h6hhidlevel==1 & HQ184M1 ==2 & r6shlt==2
{res} 43
{txt}
{com}. sca p1= r(N)/hhidpn_total
{txt}
{com}. sca list p1
{txt} p1 = {res} .0034815
{txt}
{com}.
. ** P( good || annuities )
. count if h6hhidlevel==1 & HQ184M1 ==2 & r6shlt==3
{res} 48
{txt}
{com}. sca p1= r(N)/hhidpn_total
{txt}
{com}. sca list p1
{txt} p1 = {res} .00388632
{txt}
{com}.
. ** P( fair || annuities)
. count if h6hhidlevel==1 & HQ184M1 ==2 & r6shlt==4
{res} 18
{txt}
{com}. sca p1= r(N)/hhidpn_total
{txt}
{com}. sca list p1
{txt} p1 = {res} .00145737
{txt}
{com}.
. ** P( poor|| annuities)
. count if h6hhidlevel==1 & HQ184M1 ==2 & r6shlt==5
{res} 4
{txt}
{com}. sca p1= r(N)/hhidpn_total
{txt}
{com}. sca list p1
{txt} p1 = {res} .00032386
{txt}
{com}.
Sie Summe aus den Werten (18+43+48+4+18) ist 131
Mit dem "tabulate" - tabulate HQ184M1 r6shlt - kommt als Summe der Zahlen 206 raus, da meine Zähl-Bedingung nicht berücksichtigt wird!
Vielen Dank für eure Hilfe
Peter