Hi Frank,
I think this script will partially solve your problem (X1 to X5) 


the final loop will provide X1 X2 X3 X4 X5

Artur

> Message du 29/04/10 15:15
> De : "Franck Nadaud" 
> A : gretl-users(a)lists.wfu.edu
> Copie à : 
> Objet : [Gretl-users] selecting contiguous variables in lists
>
> 
> Dear GRETL folk, greetings from Paris !
> 
> I am still on my demand system analysis and AIDS modelling.
> 
> This project involves regressions in on large cross-sections (~ 10 000
> observations) on households. Meanwhile, to control for heterogeneity, I use
> numerous lists of qualitative variables, each on different themes like:
> 
> household composition
> education
> profession
> housing attributes
> location in the hexagon
> ...
> etc.
> 
> those lists are often composed of contiguous variables names, as for example:
> 
> x1 x2 x3 x4 x5
> 
> As often in such work one likes to account for lots of attributes, so one
> needs to create long lists. In a famous paper by Blundell, Pashardes and
> Weber, 1993, there are around 150 such variables.
> 
> My problem is that I cant find in the doc a way to call / create lists with
> contiguous variables without enumerating all the variables names. So, is it
> possible to call a list with something like:
> 
> list housing = x1 to x5 x13
> 
> instead of:
> 
> list housing = x1 x2 x3 x4 x5 x13
> 
> thanks for any advice !
> 
> cheers
> 
> Franck
> 
> 
> 
> 
> 
> 
> 
> -- 
> Franck Nadaud
> CIRED
> UMR 8568 CNRS - EHESS, ENPC, ENGREF, CIRAD
> 45 bis avenue de la Belle Gabrielle
> 94736 Nogent-sur-Marne Cedex
> TEL: 33-1-43-94-73-94
> FAX: 33-1-43-94-73-70
> MOB: 06-07-39-92-75
> France
> 
> 
> 
> _______________________________________________
> Gretl-users mailing list
> Gretl-users(a)lists.wfu.edu
> http://lists.wfu.edu/mailman/listinfo/gretl-users
> 
> 

Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net

Hi Frank,

I think this script will partially solve your problem (X1 to X5) 

 

<script>

list housing = X1

loop for i = 2..5

    list housing = housing X$i
endloop
</script

 

the final loop will provide X1 X2 X3 X4 X5

 

Artur

> Message du 29/04/10 15:15
> De : "Franck Nadaud"
> A : gretl-us...@lists.wfu.edu
> Copie à :
> Objet : [Gretl-users] selecting contiguous variables in lists
>
>
> Dear GRETL folk, greetings from Paris !
>
> I am still on my demand system analysis and AIDS modelling.
>
> This project involves regressions in on large cross-sections (~ 10 000
> observations) on households. Meanwhile, to control for heterogeneity, I use
> numerous lists of qualitative variables, each on different themes like:
>
> household composition
> education
> profession
> housing attributes
> location in the hexagon
> ...
> etc.
>
> those lists are often composed of contiguous variables names, as for example:
>
> x1 x2 x3 x4 x5
>
> As often in such work one likes to account for lots of attributes, so one
> needs to create long lists. In a famous paper by Blundell, Pashardes and
> Weber, 1993, there are around 150 such variables.
>
> My problem is that I cant find in the doc a way to call / create lists with
> contiguous variables without enumerating all the variables names. So, is it
> possible to call a list with something like:
>
> list housing = x1 to x5 x13
>
> instead of:
>
> list housing = x1 x2 x3 x4 x5 x13
>
> thanks for any advice !
>
> cheers
>
> Franck
>
>
>
>
>
>
>
> --
> Franck Nadaud
> CIRED
> UMR 8568 CNRS - EHESS, ENPC, ENGREF, CIRAD
> 45 bis avenue de la Belle Gabrielle
> 94736 Nogent-sur-Marne Cedex
> TEL: 33-1-43-94-73-94
> FAX: 33-1-43-94-73-70
> MOB: 06-07-39-92-75
> France
>
>
>
> _______________________________________________
> Gretl-users mailing list
> gretl-us...@lists.wfu.edu
> http://lists.wfu.edu/mailman/listinfo/gretl-users
>
>


Pieddemail

Reply via email to