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

89.2K

Last 30 days

372nd

282.2K

Last 90 days

1.1M

Last year

Trend: -10.4% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 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-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
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 History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
ERROR r-devel-linux-x86_64-debian-gcc

PDF version of manual

Rd conversion errors:
Converting parsed Rd's to LaTeX ......Warning in file(out, "wt") :
  cannot open file '/tmp/RtmpWB3Ipr/ltx1c701025d95c2b/svygofchisq.tex': No space left on device
Error in file(out, "wt") : cannot open the connection
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 2, 2026
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 (182)

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 surveyPrev +167 more reverse deps survey

Version History

113 tracked
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