table for svyglm.object (survey package).

svyregress.display(svyglm.obj, decimal = 2)

Arguments

svyglm.obj

svyglm.object

decimal

digit, Default: 2

Value

table

Details

DETAILS

Examples

library(survey);data(api) apistrat$tt = c(rep(1, 20), rep(0, nrow(apistrat) -20)) dstrat<-svydesign(id=~1,strata=~stype, weights=~pw, data=apistrat, fpc=~fpc) ds <- svyglm(api00~ell+meals+cname+mobility, design=dstrat) ds2 <- svyglm(tt~ell+meals+cname+mobility, design=dstrat, family = quasibinomial()) svyregress.display(ds)
#> $first.line #> [1] "Linear regression predicting api00- weighted data\n" #> #> $table #> crude coeff.(95%CI) crude P value #> ell "-3.73 (-4.35,-3.11)" "< 0.001" #> meals "-3.38 (-3.71,-3.05)" "< 0.001" #> cname: ref.=Alameda NA NA #> Amador "47.84 (-52.72,148.4)" "0.353" #> Butte "-68.16 (-168.72,32.4)" "0.186" #> Colusa "-143.16 (-243.72,-42.6)" "0.006" #> Contra Costa "83.73 (-38.42,205.89)" "0.181" #> El Dorado "28.65 (-82.39,139.68)" "0.614" #> Fresno "-141.53 (-263.93,-19.12)" "0.025" #> Humboldt "16.84 (-83.72,117.4)" "0.743" #> Inyo "-15.72 (-119.64,88.19)" "0.767" #> Kern "-16.93 (-162.52,128.67)" "0.82" #> Kings "-166.16 (-266.72,-65.6)" "0.001" #> Los Angeles "-61.65 (-170.91,47.61)" "0.27" #> Marin "136.85 (14.32,259.38)" "0.03" #> Mariposa "10.84 (-89.72,111.4)" "0.833" #> Mendocino "-63.14 (-163.71,37.43)" "0.22" #> Merced "-124.3 (-226.55,-22.05)" "0.018" #> Monterey "-32.33 (-181.51,116.86)" "0.672" #> Napa "-35.16 (-135.72,65.4)" "0.494" #> Orange "15.8 (-107.96,139.56)" "0.803" #> Placer "111.2 (-24.09,246.48)" "0.109" #> Riverside "-104.26 (-208.46,-0.06)" "0.052" #> Sacramento "-3.86 (-146.36,138.64)" "0.958" #> San Bernardino "-127.61 (-246.83,-8.38)" "0.038" #> San Diego "8.96 (-110.28,128.2)" "0.883" #> San Francisco "-163.11 (-272.65,-53.56)" "0.004" #> San Joaquin "-2.07 (-106.6,102.45)" "0.969" #> San Mateo "79.45 (-98.09,257)" "0.382" #> Santa Barbara "47.84 (-52.72,148.4)" "0.353" #> Santa Clara "-31.04 (-165.5,103.42)" "0.652" #> Santa Cruz "57.37 (-43.49,158.24)" "0.267" #> Shasta "-32.66 (-151.88,86.56)" "0.592" #> Siskiyou "84.84 (-15.72,185.4)" "0.1" #> Solano "48.84 (-51.72,149.4)" "0.343" #> Sonoma "52.84 (-90.54,196.21)" "0.471" #> Stanislaus "16.84 (-83.72,117.4)" "0.743" #> Tehama "69.84 (-30.72,170.4)" "0.175" #> Tulare "-68.08 (-189.66,53.49)" "0.274" #> Tuolumne "17.84 (-82.72,118.4)" "0.729" #> Ventura "12.01 (-106.02,130.04)" "0.842" #> Yolo "-76.14 (-184.86,32.57)" "0.172" #> mobility "-1.43 (-3.3,0.44)" "0.137" #> adj. coeff.(95%CI) adj. P value #> ell "-0.7 (-1.53,0.12)" "0.098" #> meals "-3.28 (-3.95,-2.62)" "< 0.001" #> cname: ref.=Alameda NA NA #> Amador "-49.07 (-108.77,10.62)" "0.109" #> Butte "-16.79 (-84.08,50.49)" "0.625" #> Colusa "-34.66 (-97.3,27.99)" "0.28" #> Contra Costa "-2.19 (-82.54,78.15)" "0.957" #> El Dorado "-67.35 (-127.93,-6.76)" "0.031" #> Fresno "38.63 (-43.92,121.17)" "0.36" #> Humboldt "-109.43 (-168.61,-50.25)" "< 0.001" #> Inyo "-34.13 (-113.09,44.82)" "0.398" #> Kern "4.97 (-68.88,78.83)" "0.895" #> Kings "-52.63 (-124.41,19.15)" "0.153" #> Los Angeles "19.3 (-50.49,89.1)" "0.589" #> Marin "11.3 (-86.22,108.82)" "0.821" #> Mariposa "-82.79 (-142.56,-23.02)" "0.007" #> Mendocino "11.5 (-105.55,128.56)" "0.848" #> Merced "-13.49 (-91.3,64.31)" "0.734" #> Monterey "-18.77 (-101.16,63.61)" "0.656" #> Napa "-49.01 (-111.71,13.68)" "0.127" #> Orange "60.48 (-6.58,127.55)" "0.079" #> Placer "9.52 (-74.66,93.7)" "0.825" #> Riverside "-54.71 (-129.08,19.66)" "0.151" #> Sacramento "-24 (-108.17,60.17)" "0.577" #> San Bernardino "-48.23 (-124.71,28.25)" "0.218" #> San Diego "19.4 (-45.16,83.95)" "0.557" #> San Francisco "-120.99 (-231.02,-10.97)" "0.033" #> San Joaquin "-45.96 (-113.91,22)" "0.187" #> San Mateo "-21.33 (-141.17,98.51)" "0.728" #> Santa Barbara "-13.77 (-72.16,44.61)" "0.644" #> Santa Clara "-8.5 (-87.23,70.23)" "0.833" #> Santa Cruz "-20.97 (-84.94,42.99)" "0.521" #> Shasta "75.84 (-29.94,181.62)" "0.162" #> Siskiyou "42.2 (-21.33,105.72)" "0.195" #> Solano "23.63 (-40.84,88.1)" "0.474" #> Sonoma "14.9 (-65.54,95.34)" "0.717" #> Stanislaus "-100.63 (-160.12,-41.15)" "0.001" #> Tehama "103.99 (35.59,172.39)" "0.003" #> Tulare "19 (-54.7,92.7)" "0.614" #> Tuolumne "-55.71 (-115.77,4.36)" "0.071" #> Ventura "-4.67 (-68.52,59.17)" "0.886" #> Yolo "16.23 (-84.84,117.29)" "0.753" #> mobility "0.19 (-0.61,0.99)" "0.638" #> #> $last.lines #> [1] "No. of observations = 200\nAIC value = 2333.5397\n\n" #> #> attr(,"class") #> [1] "display" "list"
svyregress.display(ds2)
#> $first.line #> [1] "Logistic regression predicting tt- weighted data\n" #> #> $table #> crude OR.(95%CI) crude P value adj. OR.(95%CI) #> ell "1.02 (1,1.05)" "0.047" "1.04 (1,1.09)" #> meals "1.01 (0.99,1.03)" "0.255" "0.98 (0.95,1.01)" #> cname: ref.=Alameda NA NA NA #> Amador "0 (0,0)" "< 0.001" "0 (0,0)" #> Butte "0 (0,0)" "< 0.001" "0 (0,0)" #> Colusa "0 (0,0)" "< 0.001" "0 (0,0)" #> Contra Costa "0 (0,0)" "< 0.001" "0 (0,0)" #> El Dorado "0 (0,0)" "< 0.001" "0 (0,0)" #> Fresno "1.74 (0.12,25.84)" "0.687" "1.68 (0.07,38.44)" #> Humboldt "0 (0,0)" "< 0.001" "0 (0,0)" #> Inyo "0 (0,0)" "< 0.001" "0 (0,0)" #> Kern "1.73 (0.09,33.26)" "0.717" "3.33 (0.14,76.85)" #> Kings "0 (0,0)" "< 0.001" "0 (0,0)" #> Los Angeles "1.86 (0.19,18.54)" "0.598" "2.47 (0.19,32.99)" #> Marin "0 (0,0)" "< 0.001" "0 (0,0)" #> Mariposa "0 (0,0)" "< 0.001" "0 (0,0)" #> Mendocino "0 (0,0)" "< 0.001" "0 (0,0)" #> Merced "0 (0,0)" "< 0.001" "0 (0,0)" #> Monterey "0 (0,0)" "< 0.001" "0 (0,0)" #> Napa "0 (0,0)" "< 0.001" "0 (0,0)" #> Orange "1.58 (0.11,22.23)" "0.734" "1 (0.06,15.59)" #> Placer "0 (0,0)" "< 0.001" "0 (0,0)" #> Riverside "2.95 (0.23,38.08)" "0.408" "4.62 (0.23,94.1)" #> Sacramento "0 (0,0)" "< 0.001" "0 (0,0)" #> San Bernardino "0.74 (0.04,14.17)" "0.839" "1.07 (0.04,27.41)" #> San Diego "3.89 (0.29,51.72)" "0.306" "5.28 (0.36,78.62)" #> San Francisco "0 (0,0)" "< 0.001" "0 (0,0)" #> San Joaquin "0 (0,0)" "< 0.001" "0 (0,0)" #> San Mateo "0 (0,0)" "< 0.001" "0 (0,0)" #> Santa Barbara "0 (0,0)" "< 0.001" "0 (0,0)" #> Santa Clara "0 (0,0)" "< 0.001" "0 (0,0)" #> Santa Cruz "0 (0,0)" "< 0.001" "0 (0,0)" #> Shasta "0 (0,0)" "< 0.001" "0 (0,0)" #> Siskiyou "0 (0,0)" "< 0.001" "0 (0,0)" #> Solano "0 (0,0)" "< 0.001" "0 (0,0)" #> Sonoma "0 (0,0)" "< 0.001" "0 (0,0)" #> Stanislaus "0 (0,0)" "< 0.001" "0 (0,0)" #> Tehama "0 (0,0)" "< 0.001" "0 (0,0)" #> Tulare "0 (0,0)" "< 0.001" "0 (0,0)" #> Tuolumne "0 (0,0)" "< 0.001" "0 (0,0)" #> Ventura "7.01 (0.56,88.41)" "0.134" "9.68 (0.59,158.28)" #> Yolo "0 (0,0)" "< 0.001" "0 (0,0)" #> mobility "1.01 (0.98,1.03)" "0.506" "1 (0.97,1.04)" #> adj. P value #> ell "0.061" #> meals "0.182" #> cname: ref.=Alameda NA #> Amador "< 0.001" #> Butte "< 0.001" #> Colusa "< 0.001" #> Contra Costa "< 0.001" #> El Dorado "< 0.001" #> Fresno "0.747" #> Humboldt "< 0.001" #> Inyo "< 0.001" #> Kern "0.454" #> Kings "< 0.001" #> Los Angeles "0.494" #> Marin "< 0.001" #> Mariposa "< 0.001" #> Mendocino "< 0.001" #> Merced "< 0.001" #> Monterey "< 0.001" #> Napa "< 0.001" #> Orange "0.998" #> Placer "< 0.001" #> Riverside "0.321" #> Sacramento "< 0.001" #> San Bernardino "0.969" #> San Diego "0.229" #> San Francisco "< 0.001" #> San Joaquin "< 0.001" #> San Mateo "< 0.001" #> Santa Barbara "< 0.001" #> Santa Clara "< 0.001" #> Santa Cruz "< 0.001" #> Shasta "< 0.001" #> Siskiyou "< 0.001" #> Solano "< 0.001" #> Sonoma "< 0.001" #> Stanislaus "< 0.001" #> Tehama "< 0.001" #> Tulare "< 0.001" #> Tuolumne "< 0.001" #> Ventura "0.113" #> Yolo "< 0.001" #> mobility "0.787" #> #> $last.lines #> [1] "No. of observations = 200\n\n" #> #> attr(,"class") #> [1] "display" "list"