Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Calcolare gli anni di permanenza in un determinato paese conoscendo l'anno di arrivo

    Ciao a tutti!!
    Avrei bisogno di un consiglio per una ricerca scolastica in Stata. Negli allegati c'è lo screenshoot del mio dataset. Vorrei trovare il numero di anni da quando determinati soggetti vivono in Italia. La colonna a5_d_2 non è completa, contiene dei missing value. L'anno dell'intervista è il 2015. Come pensate che dovrei procedere per ricavarmi gli anni di permanenza?

    breve esempio del problema che voglio risolvere:
    2009
    ...
    1990
    ...
    2001
    Attached Files
    Last edited by Adaline Pop; 05 Feb 2019, 15:09.

  • #2
    Adaline:
    posting queries in Italian vs English, reduces to a remarkable extent your chances to get an useful reply.
    Moreover, as per FAQ, that you (like everybody else) are requested to read before your first post:
    - posting queries related to school/home assignements is deprecated;
    - posting screenshots is, at best, unhelpful, as no one can elaborate on them;
    - eventually, having data in -string- (instead of -numeric-) format does not allow any calculation (see -help destring-).
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment

    Working...
    X