tests/testthat/_snaps/convert_params.md

convert_summary_stats_to_params.character works as expected

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["shape", "scale"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [4]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.25]
    }
  ]
}
{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["shape", "scale"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [1.00001629]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.50000344]
    }
  ]
}
{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["meanlog", "sdlog"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [-0.34657359]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.83255461]
    }
  ]
}
{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["meanlog", "sdlog"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [1.60943791]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.69314718]
    }
  ]
}
{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["prob", "dispersion"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [0.5]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    }
  ]
}
{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["prob", "dispersion"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [0.44444444]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.8]
    }
  ]
}
{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["prob"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [0.66666667]
    }
  ]
}

convert_summary_stats_to_params.epiparameter works as expected

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["meanlog", "sdlog"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [-0.34657359]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.83255461]
    }
  ]
}

convert_params_to_summary_stats.character works as expected

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["mean", "median", "mode", "var", "sd", "cv", "skewness", "ex_kurtosis"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [3.08021685]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.71828183]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.11700002]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.69475812]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.64157185]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.53294035]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.75018966]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [5.89844567]
    }
  ]
}
{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["mean", "median", "mode", "var", "sd", "cv", "skewness", "ex_kurtosis"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.41421356]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.41421356]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.12132034]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [6.5]
    }
  ]
}
{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["mean", "median", "mode", "var", "sd", "cv", "skewness", "ex_kurtosis"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.69314718]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [6]
    }
  ]
}
{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["mean", "median", "mode", "var", "sd", "cv", "skewness", "ex_kurtosis"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0.69314718]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [6]
    }
  ]
}
{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["mean", "median", "mode", "var", "sd", "cv", "skewness", "ex_kurtosis"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [0]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.41421356]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.41421356]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.12132034]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [6.5]
    }
  ]
}

convert_params_to_summary_stats.epiparameter works as expected

{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["mean", "median", "mode", "var", "sd", "cv", "skewness", "ex_kurtosis"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [4.48168907]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.71828183]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [34.51261311]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [5.87474366]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.31083249]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [6.18487714]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [110.93639218]
    }
  ]
}
{
  "type": "list",
  "attributes": {
    "names": {
      "type": "character",
      "attributes": {},
      "value": ["mean", "median", "mode", "var", "sd", "cv", "skewness", "ex_kurtosis"]
    }
  },
  "value": [
    {
      "type": "double",
      "attributes": {},
      "value": [4.48168907]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [2.71828183]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [34.51261311]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [5.87474366]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [1.31083249]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [6.18487714]
    },
    {
      "type": "double",
      "attributes": {},
      "value": [110.93639218]
    }
  ]
}


Try the epiparameter package in your browser

Any scripts or data that you put into this service are public.

epiparameter documentation built on April 3, 2025, 5:50 p.m.