Search found 6 matches

by alex7312
Thu Dec 04, 2014 3:04 pm
Forum: Data Manipulation
Topic: something like str2num ?
Replies: 3
Views: 2818

Re: something like str2num ?

thanks!
Suppose it refers to second part?
It does not refer to converting the whole series to numbers? Because if I apply to whole series @val(nameofseries) it returns numbers and n/a...
by alex7312
Thu Dec 04, 2014 2:19 pm
Forum: Data Manipulation
Topic: something like str2num ?
Replies: 3
Views: 2818

something like str2num ?

1 I have a series with numbers stored as string (for some reason that is how they were imported from xls / although in xls they are stored as numbers). How to convert the whole series in number format? Otherwise I receive the following info: "alpha series in specification DUM_POZICIJA (name of ...
by alex7312
Tue Dec 02, 2014 2:36 pm
Forum: Data Manipulation
Topic: Series manipulation
Replies: 7
Views: 4302

Re: Series manipulation

Thank you again for a solution and explanation!
Regards from far far away :D
by alex7312
Tue Dec 02, 2014 1:23 pm
Forum: Data Manipulation
Topic: Series manipulation
Replies: 7
Views: 4302

Re: Series manipulation

hey, far from ugly :) Could I ask for some explanation (as it is a bit advanced for me...)?? e.g. @first @first - it means first two observations are taken ? and the middle part smpl @first+1 @last /excludes the first two??/ series trend0 = @recode(xyc=1, trend0(-1), trend0(-1)+1) what does it mean?...
by alex7312
Tue Dec 02, 2014 12:51 pm
Forum: Data Manipulation
Topic: Series manipulation
Replies: 7
Views: 4302

Re: Series manipulation

Thanks a lot Starz, very elegant solution :) Gareth do you have something else in mind? Let's say I want to include all defaults =1 and the first 1/3 zeros then second portion of 1/3 zeros and the last third (and to check different results of logit)...how to do it? can I use something @first....? be...
by alex7312
Mon Dec 01, 2014 2:51 pm
Forum: Data Manipulation
Topic: Series manipulation
Replies: 7
Views: 4302

Series manipulation

Hi everybody. I have a binary series named xyc (default indicator, dependent variable) where ones are in minority. I would like to form a new sample where all items which are ones are included and certain portion of zeros included (let's say 30% of the remaining series) but this remaining portion to...

Go to advanced search