{
  "name": "egenmore functions: Stata version required and official counterpart",
  "description": "Compares fourteen egenmore functions by the Stata version the package help file states they need, the function or command the help file names as related or superseding, and the maintainer's remark. Compiled from the egenmore help file at the Boston College SSC Archive and the Stata egen help.",
  "page": "https://casrai.org/guides/stata-egenmore",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-18T00:33:57Z",
  "temporalCoverage": "Package revised 2019-01-24",
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Function",
      "unit": "",
      "description": ""
    },
    {
      "name": "Stata version required",
      "unit": "",
      "description": "As stated in the egenmore help file"
    },
    {
      "name": "What it returns",
      "unit": "",
      "description": ""
    },
    {
      "name": "Related, official or superseding item named in the help file",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Function": "clsst()",
      "Stata version required": "6",
      "What it returns": "The closest of a list of values to a numeric variable",
      "Related, official or superseding item named in the help file": "None named"
    },
    {
      "Function": "group2()",
      "Stata version required": "7",
      "What it returns": "Group numbers ordered by the result of another egen call",
      "Related, official or superseding item named in the help file": "Help file: egroup() or axis() is now considered better style"
    },
    {
      "Function": "noccur()",
      "Stata version required": "7",
      "What it returns": "Count of non-overlapping occurrences of a substring",
      "Related, official or superseding item named in the help file": "nss() duplicates it (help file: inadvertent)"
    },
    {
      "Function": "nss()",
      "Stata version required": "6",
      "What it returns": "Count of occurrences of a substring, optionally case-insensitive",
      "Related, official or superseding item named in the help file": "noccur() duplicates it (help file: inadvertent)"
    },
    {
      "Function": "nvals()",
      "Stata version required": "6",
      "What it returns": "Number of distinct values, optionally by group",
      "Related, official or superseding item named in the help file": "Official tag() plus a sum; distinct command"
    },
    {
      "Function": "xtile()",
      "Stata version required": "8.2",
      "What it returns": "Percentile-based category numbers",
      "Related, official or superseding item named in the help file": "Works like the xtile command"
    },
    {
      "Function": "outside()",
      "Stata version required": "8",
      "What it returns": "Values more than factor() times the IQR from the nearer quartile, others missing",
      "Related, official or superseding item named in the help file": "Default factor 1.5, as in a Stata box plot"
    },
    {
      "Function": "corr()",
      "Stata version required": "8",
      "What it returns": "Correlation of two variables, optionally covariance, Spearman or Kendall",
      "Related, official or superseding item named in the help file": "None named"
    },
    {
      "Function": "rownvals()",
      "Stata version required": "9",
      "What it returns": "Distinct values across numeric variables within an observation",
      "Related, official or superseding item named in the help file": "rowsvals() is the string version"
    },
    {
      "Function": "rowsvals()",
      "Stata version required": "9",
      "What it returns": "Distinct values across string variables within an observation",
      "Related, official or superseding item named in the help file": "rownvals() is the numeric version"
    },
    {
      "Function": "rowmedian()",
      "Stata version required": "9",
      "What it returns": "Row median across variables",
      "Related, official or superseding item named in the help file": "Official rowmedian() since Stata 11 always trumps it"
    },
    {
      "Function": "rsum2()",
      "Stata version required": "6",
      "What it returns": "Row sum with allmiss and anymiss options",
      "Related, official or superseding item named in the help file": "Generalizes rsum(), which became official rowtotal() from Stata 9"
    },
    {
      "Function": "record()",
      "Stata version required": "6",
      "What it returns": "Maximum (or minimum) so far of an expression",
      "Related, official or superseding item named in the help file": "None named"
    },
    {
      "Function": "ntos()",
      "Stata version required": "6",
      "What it returns": "String variable mapped from numeric values",
      "Related, official or superseding item named in the help file": "None named"
    }
  ],
  "sources": [
    {
      "title": "egenmore help file (Boston College SSC Archive)",
      "url": "http://fmwww.bc.edu/repec/bocode/e/egenmore.sthlp",
      "accessed": "2026-11-17"
    },
    {
      "title": "Stata help for egen",
      "url": "https://www.stata.com/help.cgi?egen",
      "accessed": "2026-11-17"
    }
  ]
}