Skip to content

survey

Analysis of Complex Survey Samples

v4.5 · Feb 24, 2026 · GPL-2 | GPL-3

Description

Summary statistics, two-sample tests, rank tests, generalised linear models, cumulative link models, Cox models, loglinear models, and general maximum pseudolikelihood estimation for multistage stratified, cluster-sampled, unequally weighted survey samples. Variances by Taylor series linearisation or replicate weights. Post-stratification, calibration, and raking. Two-phase and multiphase subsampling designs. Graphics. PPS sampling without replacement. Small-area estimation. Dual-frame designs.

Downloads

94.8K

Last 30 days

361st

266.9K

Last 90 days

1M

Last year

Trend: +2.7% (30d vs prior 30d)

CRAN Check Status

1 ERROR
3 NOTE
10 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 ERROR
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (4 non-OK)
ERROR r-devel-macos-arm64

tests

Running ‘3stage2phase.R’ [1s/1s]
  Running ‘DBIcheck.R’ [1s/1s]
Running the tests in ‘tests/DBIcheck.R’ failed.
Complete output:
  > 
  > library(survey)
  Loading required package: grid
  Loading required package: Matrix
  Loading required package: survival
  
  Attaching package: 'survey'
  
  The following object is masked from 'package:graphics':
  
      dotchart
  
  > library(RSQLite)
  Error in library(RSQLite) : there is no package called 'RSQLite'
  Execution halted
NOTE r-oldrel-macos-arm64

installed package size

installed size is  6.9Mb
  sub-directories of 1Mb or more:
    R      2.1Mb
    doc    1.5Mb
    libs   1.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.9Mb
  sub-directories of 1Mb or more:
    R      2.0Mb
    doc    1.5Mb
    libs   2.0Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.0Mb
  sub-directories of 1Mb or more:
    R      1.2Mb
    doc    1.5Mb
    libs   1.0Mb

Check History

ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
ERROR r-devel-macos-arm64

tests

Running ‘3stage2phase.R’ [1s/1s]
  Running ‘DBIcheck.R’ [1s/1s]
Running the tests in ‘tests/DBIcheck.R’ failed.
Complete output:
  > 
  > library(survey)
  Loading required package: grid
  Loading required package: Matrix
  Loading required package: survival
  
  Attaching package: 'survey'
  
  The following object is masked from 'package:graphics':
  
      dotchart
  
  > library(RSQLite)
  Error in library(RSQLite) : there is no package called 'RSQLite'
  Execution halted
NOTE r-oldrel-macos-arm64

installed package size

installed size is  6.9Mb
  sub-directories of 1Mb or more:
    R      2.1Mb
    doc    1.5Mb
    libs   1.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.9Mb
  sub-directories of 1Mb or more:
    R      2.0Mb
    doc    1.5Mb
    libs   2.0Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.0Mb
  sub-directories of 1Mb or more:
    R      1.2Mb
    doc    1.5Mb
    libs   1.0Mb
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  6.9Mb
  sub-directories of 1Mb or more:
    R      2.1Mb
    doc    1.5Mb
    libs   1.9Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.9Mb
  sub-directories of 1Mb or more:
    R      2.0Mb
    doc    1.5Mb
    libs   2.0Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.0Mb
  sub-directories of 1Mb or more:
    R      1.2Mb
    doc    1.5Mb
    libs   1.0Mb

Reverse Dependencies (174)

Dependency Network

Dependencies Reverse dependencies Matrix survival lattice minqa numDeriv mitools Rcpp CalibrateSSB StatMatch cjoint csurvey eatRep ggsurvey hopit mapStats nonprobsvy pedgene relaimpo sae2 samplingbook spsurvey svrep +159 more reverse deps survey

Version History

new 4.5 Mar 10, 2026
updated 4.5 ← 4.4-8 diff Feb 23, 2026
updated 4.4-8 ← 4.4-2 diff Aug 27, 2025
updated 4.4-2 ← 4.4-1 diff Mar 19, 2024
updated 4.4-1 ← 4.2-1 diff Mar 7, 2024
updated 4.2-1 ← 4.1-1 diff May 2, 2023
updated 4.1-1 ← 4.0 diff Jul 18, 2021
updated 4.0 ← 3.37 diff Apr 2, 2020
updated 3.37 ← 3.36 diff Jan 20, 2020
updated 3.36 ← 3.35-1 diff Apr 26, 2019
updated 3.35-1 ← 3.35 diff Jan 28, 2019
updated 3.35 ← 3.34 diff Dec 17, 2018
updated 3.34 ← 3.33-2 diff Oct 11, 2018
updated 3.33-2 ← 3.33 diff Mar 12, 2018
updated 3.33 ← 3.32-1 diff Jan 22, 2018
updated 3.32-1 ← 3.32 diff Jun 22, 2017
updated 3.32 ← 3.31-5 diff Jun 6, 2017
updated 3.31-5 ← 3.31-2 diff Nov 30, 2016
updated 3.31-2 ← 3.31 diff Sep 22, 2016
updated 3.31 ← 3.30-3 diff Aug 4, 2016