Skip to main content

Network Scale-Up Models for Aggregated Relational Data

Project description

This package fits several different Network Scale-Up Models (NSUM) to Aggregated Relational Data (ARD). ARD represents survey responses to questions of the form: "How many X’s do you know?", where respondents report how many people they know in different subpopulations.

Specifically, if Nᵢ respondents are asked about Nₖ subpopulations, then the ARD is an Nᵢ times Nₖ matrix, where the (i, j) element represents how many people respondent i reports knowing in subpopulation j.

NSUM leverages these responses to estimate the unknown size of hard-to-reach populations.

PIMLE

The plug-in MLE (PIMLE) estimator from Killworth, P. D., Johnsen, E. C., McCarty, C., Shelley, G. A., and Bernard, H. R. (1998) is a two-stage estimator that first estimates the degrees for each respondent dᵢ by maximizing the following likelihood for each respondent: L(dᵢ; y, {Nₖ}) = ∏ₖ₌₁ᴸ [ C(dᵢ, yᵢₖ) × (Nₖ / N)^yᵢₖ × (1 - Nₖ / N)^(dᵢ - yᵢₖ) ] Where: - L is the number of subpopulations with known sizes Nₖ. - yᵢₖ is the number of people respondent i reports knowing in subpopulation k. - C(dᵢ, yᵢₖ) is the binomial coefficient. In the second stage, the model plugs in the estimated dᵢ into the equation: yᵢₖ / dᵢ = Nₖ / N and solves for the unknown Nₖ for each respondent. These estimates are then averaged to obtain a single estimate of Nₖ. Summary: Stage 1 estimates dᵢ using: dᵢ = N × (∑ₖ₌₁ᴸ yᵢₖ) / (∑ₖ₌₁ᴸ Nₖ) Stage 2 estimates the unknown subpopulation size Nₖ with: Nₖᴾᴵᴹᴸᴱ = (N / n) × ∑ᵢ₌₁ⁿ (yᵢₖ / dᵢ)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

networkscaleup-0.0.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

networkscaleup-0.0.3-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file networkscaleup-0.0.3.tar.gz.

File metadata

  • Download URL: networkscaleup-0.0.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for networkscaleup-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1af00e38fb7625aa1283eefb9dde2d441a460ffc81ff434a4e2175f622be6f2d
MD5 60b9e31e7e54dea215a3a20d5e7ff06c
BLAKE2b-256 3a5cf9135ef12b8e760e76f7375f2536e0a9516e6aca1f7a98ad77d45518d088

See more details on using hashes here.

File details

Details for the file networkscaleup-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: networkscaleup-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for networkscaleup-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3ca65f2a3cde7f614d69238a4112062efaa0446e79426725db0d695b75a025e1
MD5 92408b4c1461d7c631b25918c9aef5a5
BLAKE2b-256 d4fc8a795e2d69314d0b77dce6138c28b0f5dfe49904fbf1d212c7df0b03a4f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page