I think there's no gretl command similar to SPSS "weight by " in the sense that it can not be activated by default for the active dataset (as you can do in SPSS though the "weight observations" menu.)
Instead you need to specifically indicate a weighting variable whenever needed (as for example in the case of wls) or applied (as for example in the 'summary' command).

Best,
Artur

Le jeu. 21 juil. 2022, 21:44, John C Frain <frainj@gmail.com> a écrit :
I am not familiar with the survey methodology used in the ESS.  I understand that it is based on a complex survey methodology.  As such using the weights in standard wls will not give correct results. The survey package in R can give correct estimates.  I think that stata can also do this.  Lumley (2010), Complex surveys - A guide to analysis using R.  Wiley.  Lohr (2010), Sampling Design and Analysis 2nd edition, has a more introductory treatment.  

I have commented here because I have seen an analysis go very wrong because of this problem.  Please excuse me if my comment is out of order.




On Thu, 21 Jul 2022 at 17:25, Riccardo (Jack) Lucchetti <p002264@staff.univpm.it> wrote:
On Wed, 20 Jul 2022, Μπεκιάρης Ευάγγελος wrote:

> I have easily weighted data in SPSS in the past, and now I would like to
> weight European Social Survey (ESS) data in the GRETL software package,
> if possible, but I don't know how. I would be most grateful if you
> advised me. The syntax I use in SPSS for this purpose is as follows:
> WEIGHT BY analysisweight .

You should look at the documentation for the "wls" command.

-------------------------------------------------------
   Riccardo (Jack) Lucchetti
   Dipartimento di Scienze Economiche e Sociali (DiSES)

   Università Politecnica delle Marche
   (formerly known as Università di Ancona)

   r.lucchetti@univpm.it
   http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-leave@gretlml.univpm.it
Website: https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/
_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-leave@gretlml.univpm.it
Website: https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/