library(car)
## Warning: package 'car' was built under R version 4.1.3
## Loading required package: carData
## Warning: package 'carData' was built under R version 4.1.2
library(tab)
## Warning: package 'tab' was built under R version 4.1.3
## Loading required package: dplyr
## Warning: package 'dplyr' was built under R version 4.1.3
## 
## Attaching package: 'dplyr'
## The following object is masked from 'package:car':
## 
##     recode
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
## Loading required package: knitr
## Warning: package 'knitr' was built under R version 4.1.3
library(sjPlot)
## Warning: package 'sjPlot' was built under R version 4.1.3
## Registered S3 method overwritten by 'parameters':
##   method                         from      
##   format.parameters_distribution datawizard
## Registered S3 methods overwritten by 'effectsize':
##   method              from      
##   standardize.Surv    datawizard
##   standardize.bcplm   datawizard
##   standardize.clm2    datawizard
##   standardize.default datawizard
##   standardize.mediate datawizard
##   standardize.wbgee   datawizard
##   standardize.wbm     datawizard
## Learn more about sjPlot with 'browseVignettes("sjPlot")'.
library(texreg)
## Warning: package 'texreg' was built under R version 4.1.3
## Version:  1.38.6
## Date:     2022-04-06
## Author:   Philip Leifeld (University of Essex)
## 
## Consider submitting praise using the praise or praise_interactive functions.
## Please cite the JSS article in your publications -- see citation("texreg").
library(ggpubr)
## Warning: package 'ggpubr' was built under R version 4.1.2
## Loading required package: ggplot2
## Warning: package 'ggplot2' was built under R version 4.1.3
library(rgdal)
## Warning: package 'rgdal' was built under R version 4.1.3
## Loading required package: sp
## Warning: package 'sp' was built under R version 4.1.3
## Please note that rgdal will be retired by the end of 2023,
## plan transition to sf/stars/terra functions using GDAL and PROJ
## at your earliest convenience.
## 
## rgdal: version: 1.5-32, (SVN revision 1176)
## Geospatial Data Abstraction Library extensions to R successfully loaded
## Loaded GDAL runtime: GDAL 3.4.1, released 2021/12/27
## Path to GDAL shared files: C:/Users/mahir.bhatt/Documents/R/win-library/4.1/rgdal/gdal
## GDAL binary built with GEOS: TRUE 
## Loaded PROJ runtime: Rel. 7.2.1, January 1st, 2021, [PJ_VERSION: 721]
## Path to PROJ shared files: C:/Users/mahir.bhatt/Documents/R/win-library/4.1/rgdal/proj
## PROJ CDN enabled: FALSE
## Linking to sp version:1.4-7
## To mute warnings of possible GDAL/OSR exportToProj4() degradation,
## use options("rgdal_show_exportToProj4_warnings"="none") before loading sp or rgdal.
library(terra)
## Warning: package 'terra' was built under R version 4.1.2
## terra 1.5.21
## 
## Attaching package: 'terra'
## The following object is masked from 'package:rgdal':
## 
##     project
## The following object is masked from 'package:ggpubr':
## 
##     rotate
## The following object is masked from 'package:ggplot2':
## 
##     arrow
## The following object is masked from 'package:texreg':
## 
##     extract
## The following object is masked from 'package:knitr':
## 
##     spin
## The following object is masked from 'package:dplyr':
## 
##     src
library(data.table)
## Warning: package 'data.table' was built under R version 4.1.2
## 
## Attaching package: 'data.table'
## The following object is masked from 'package:terra':
## 
##     shift
## The following objects are masked from 'package:dplyr':
## 
##     between, first, last
library(gapminder)
## Warning: package 'gapminder' was built under R version 4.1.2
library(tidyquant)
## Warning: package 'tidyquant' was built under R version 4.1.3
## Loading required package: lubridate
## Warning: package 'lubridate' was built under R version 4.1.2
## 
## Attaching package: 'lubridate'
## The following objects are masked from 'package:data.table':
## 
##     hour, isoweek, mday, minute, month, quarter, second, wday, week,
##     yday, year
## The following objects are masked from 'package:terra':
## 
##     intersect, union
## The following objects are masked from 'package:base':
## 
##     date, intersect, setdiff, union
## Loading required package: PerformanceAnalytics
## Warning: package 'PerformanceAnalytics' was built under R version 4.1.2
## Loading required package: xts
## Warning: package 'xts' was built under R version 4.1.2
## Loading required package: zoo
## Warning: package 'zoo' was built under R version 4.1.3
## 
## Attaching package: 'zoo'
## The following object is masked from 'package:terra':
## 
##     time<-
## The following objects are masked from 'package:base':
## 
##     as.Date, as.Date.numeric
## 
## Attaching package: 'xts'
## The following objects are masked from 'package:data.table':
## 
##     first, last
## The following objects are masked from 'package:dplyr':
## 
##     first, last
## 
## Attaching package: 'PerformanceAnalytics'
## The following object is masked from 'package:graphics':
## 
##     legend
## Loading required package: quantmod
## Warning: package 'quantmod' was built under R version 4.1.3
## Loading required package: TTR
## Warning: package 'TTR' was built under R version 4.1.2
## Registered S3 method overwritten by 'quantmod':
##   method            from
##   as.zoo.data.frame zoo
library(plotly)
## Warning: package 'plotly' was built under R version 4.1.2
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:graphics':
## 
##     layout
library(ARPALData)
## Warning: package 'ARPALData' was built under R version 4.1.3
library(shinyjs)
## Warning: package 'shinyjs' was built under R version 4.1.2
## 
## Attaching package: 'shinyjs'
## The following object is masked from 'package:quantmod':
## 
##     show
## The following object is masked from 'package:lubridate':
## 
##     show
## The following object is masked from 'package:terra':
## 
##     click
## The following object is masked from 'package:sp':
## 
##     show
## The following object is masked from 'package:texreg':
## 
##     show
## The following objects are masked from 'package:methods':
## 
##     removeClass, show
library(shiny)
## Warning: package 'shiny' was built under R version 4.1.2
## 
## Attaching package: 'shiny'
## The following object is masked from 'package:shinyjs':
## 
##     runExample
library(tmaptools)
## Warning: package 'tmaptools' was built under R version 4.1.2
library(plotly)
library(incidence)
## Warning: package 'incidence' was built under R version 4.1.2
library(xts)
library(bigmemory)
## Warning: package 'bigmemory' was built under R version 4.1.3
## 
## Attaching package: 'bigmemory'
## The following object is masked from 'package:terra':
## 
##     deepcopy
library(ff)
## Warning: package 'ff' was built under R version 4.1.3
## Loading required package: bit
## Warning: package 'bit' was built under R version 4.1.2
## 
## Attaching package: 'bit'
## The following object is masked from 'package:data.table':
## 
##     setattr
## The following object is masked from 'package:base':
## 
##     xor
## Attaching package ff
## - getOption("fftempdir")=="C:/Users/MAHIR~1.BHA/AppData/Local/Temp/RtmpSeKF2w/ff"
## - getOption("ffextension")=="ff"
## - getOption("ffdrop")==TRUE
## - getOption("fffinonexit")==TRUE
## - getOption("ffpagesize")==65536
## - getOption("ffcaching")=="mmnoflush"  -- consider "ffeachflush" if your system stalls on large writes
## - getOption("ffbatchbytes")==16777216 -- consider a different value for tuning your system
## - getOption("ffmaxbytes")==536870912 -- consider a different value for tuning your system
## 
## Attaching package: 'ff'
## The following object is masked from 'package:bigmemory':
## 
##     is.readonly
## The following objects are masked from 'package:terra':
## 
##     is.factor, ncol<-, nrow<-
## The following objects are masked from 'package:utils':
## 
##     write.csv, write.csv2
## The following objects are masked from 'package:base':
## 
##     is.factor, is.ordered
library(ffbase)
## Warning: package 'ffbase' was built under R version 4.1.2
## Registered S3 methods overwritten by 'ffbase':
##   method   from
##   [.ff     ff  
##   [.ffdf   ff  
##   [<-.ff   ff  
##   [<-.ffdf ff
## 
## Attaching package: 'ffbase'
## The following object is masked from 'package:terra':
## 
##     %in%
## The following objects are masked from 'package:base':
## 
##     %in%, table
library(plyr)
## Warning: package 'plyr' was built under R version 4.1.3
## ------------------------------------------------------------------------------
## You have loaded plyr after dplyr - this is likely to cause problems.
## If you need functions from both plyr and dplyr, please load plyr first, then dplyr:
## library(plyr); library(dplyr)
## ------------------------------------------------------------------------------
## 
## Attaching package: 'plyr'
## The following objects are masked from 'package:plotly':
## 
##     arrange, mutate, rename, summarise
## The following object is masked from 'package:ggpubr':
## 
##     mutate
## The following objects are masked from 'package:dplyr':
## 
##     arrange, count, desc, failwith, id, mutate, rename, summarise,
##     summarize
library(ggplot2)
library(grid)
## 
## Attaching package: 'grid'
## The following object is masked from 'package:ff':
## 
##     pattern
## The following objects are masked from 'package:terra':
## 
##     arrow, depth
library(dplyr)
library(tidyr)
## Warning: package 'tidyr' was built under R version 4.1.2
## 
## Attaching package: 'tidyr'
## The following object is masked from 'package:terra':
## 
##     extract
## The following object is masked from 'package:texreg':
## 
##     extract
library(tidyverse)
## Warning: package 'tidyverse' was built under R version 4.1.2
## -- Attaching packages --------------------------------------- tidyverse 1.3.1 --
## v tibble  3.1.7     v stringr 1.4.0
## v readr   2.1.2     v forcats 0.5.1
## v purrr   0.3.4
## Warning: package 'tibble' was built under R version 4.1.3
## Warning: package 'readr' was built under R version 4.1.2
## Warning: package 'purrr' was built under R version 4.1.2
## Warning: package 'stringr' was built under R version 4.1.2
## Warning: package 'forcats' was built under R version 4.1.2
## -- Conflicts ------------------------------------------ tidyverse_conflicts() --
## x plyr::arrange()          masks plotly::arrange(), dplyr::arrange()
## x grid::arrow()            masks terra::arrow(), ggplot2::arrow()
## x lubridate::as.difftime() masks base::as.difftime()
## x data.table::between()    masks dplyr::between()
## x purrr::compact()         masks plyr::compact()
## x plyr::count()            masks dplyr::count()
## x lubridate::date()        masks base::date()
## x tidyr::extract()         masks terra::extract(), texreg::extract()
## x plyr::failwith()         masks dplyr::failwith()
## x plotly::filter()         masks dplyr::filter(), stats::filter()
## x xts::first()             masks data.table::first(), dplyr::first()
## x lubridate::hour()        masks data.table::hour()
## x plyr::id()               masks dplyr::id()
## x lubridate::intersect()   masks terra::intersect(), base::intersect()
## x lubridate::isoweek()     masks data.table::isoweek()
## x dplyr::lag()             masks stats::lag()
## x xts::last()              masks data.table::last(), dplyr::last()
## x lubridate::mday()        masks data.table::mday()
## x lubridate::minute()      masks data.table::minute()
## x lubridate::month()       masks data.table::month()
## x plyr::mutate()           masks plotly::mutate(), ggpubr::mutate(), dplyr::mutate()
## x lubridate::quarter()     masks data.table::quarter()
## x dplyr::recode()          masks car::recode()
## x plyr::rename()           masks plotly::rename(), dplyr::rename()
## x lubridate::second()      masks data.table::second()
## x lubridate::setdiff()     masks base::setdiff()
## x shinyjs::show()          masks quantmod::show(), lubridate::show(), sp::show(), texreg::show(), methods::show()
## x purrr::some()            masks car::some()
## x terra::src()             masks dplyr::src()
## x plyr::summarise()        masks plotly::summarise(), dplyr::summarise()
## x plyr::summarize()        masks dplyr::summarize()
## x purrr::transpose()       masks data.table::transpose()
## x lubridate::union()       masks terra::union(), base::union()
## x lubridate::wday()        masks data.table::wday()
## x lubridate::week()        masks data.table::week()
## x lubridate::yday()        masks data.table::yday()
## x lubridate::year()        masks data.table::year()
library(lubridate)
library(dygraphs)
## Warning: package 'dygraphs' was built under R version 4.1.2
library(zoo)
library(heatmaply)
## Warning: package 'heatmaply' was built under R version 4.1.3
## Loading required package: viridis
## Warning: package 'viridis' was built under R version 4.1.2
## Loading required package: viridisLite
## Warning: package 'viridisLite' was built under R version 4.1.2
## Registered S3 methods overwritten by 'registry':
##   method               from 
##   print.registry_field proxy
##   print.registry_entry proxy
## 
## ======================
## Welcome to heatmaply version 1.3.0
## 
## Type citation('heatmaply') for how to cite the package.
## Type ?heatmaply for the main documentation.
## 
## The github page is: https://github.com/talgalili/heatmaply/
## Please submit your suggestions and bug-reports at: https://github.com/talgalili/heatmaply/issues
## You may ask questions at stackoverflow, use the r and heatmaply tags: 
##   https://stackoverflow.com/questions/tagged/heatmaply
## ======================
library(ggcorrplot)
## Warning: package 'ggcorrplot' was built under R version 4.1.3
library(openair)
## Warning: package 'openair' was built under R version 4.1.3
library(MASS)
## 
## Attaching package: 'MASS'
## The following object is masked from 'package:plotly':
## 
##     select
## The following object is masked from 'package:terra':
## 
##     area
## The following object is masked from 'package:dplyr':
## 
##     select
library(knitr)
library(rmdformats)
## Warning: package 'rmdformats' was built under R version 4.1.3
require(tidyverse)
require(ggplot2)
require(lubridate)
require(sf)
## Loading required package: sf
## Warning: package 'sf' was built under R version 4.1.3
## Linking to GEOS 3.9.1, GDAL 3.2.1, PROJ 7.2.1; sf_use_s2() is TRUE
require(zoo)
require(spdep)
## Loading required package: spdep
## Warning: package 'spdep' was built under R version 4.1.3
## Loading required package: spData
## Warning: package 'spData' was built under R version 4.1.2
## To access larger datasets in this package, install the spDataLarge
## package with: `install.packages('spDataLarge',
## repos='https://nowosad.github.io/drat/', type='source')`
require(tmap)
## Loading required package: tmap
## Warning: package 'tmap' was built under R version 4.1.3
require(tidyquant)
require(readODS)
## Loading required package: readODS
## Warning: package 'readODS' was built under R version 4.1.2
## Global options
options(max.print="75")
opts_chunk$set(echo=FALSE)
opts_knit$set(width=75)

R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

Including Plots

You can also embed plots, for example:

## Rows: 44 Columns: 33
## -- Column specification --------------------------------------------------------
## Delimiter: ","
## dbl (33): Afd, Landlichkeit, Arbeitslosenquote, Kurzarbeiter, Einwohner von ...
## 
## i Use `spec()` to retrieve the full column specification for this data.
## i Specify the column types or set `show_col_types = FALSE` to quiet this message.

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.

## 
## Call:
## glm.nb(formula = nPos01Tweet ~ Stimmenanteile.AfD + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 117.1561862)
## 
## Deviance Residuals: 
##      Min        1Q    Median        3Q       Max  
## -2.57041  -0.69628  -0.09196   0.59892   2.28172  
## 
## Coefficients:
##                     Estimate Std. Error z value Pr(>|z|)    
## (Intercept)        -0.936500   0.093283 -10.039   <2e-16 ***
## Stimmenanteile.AfD -0.002918   0.007539  -0.387    0.699    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(117.1562) family taken to be 1)
## 
##     Null deviance: 51.328  on 43  degrees of freedom
## Residual deviance: 51.170  on 42  degrees of freedom
## AIC: 401.14
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  117.2 
##           Std. Err.:  48.9 
## 
##  2 x log-likelihood:  -395.141
  n Pos 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.39 0.33 – 0.47 <0.001
Stimmenanteile AfD 1.00 0.98 – 1.01 0.699
Observations 44
R2 Nagelkerke 0.005
## 
## Call:
## glm.nb(formula = nPos01Tweet ~ Laendlichkeit + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 119.2719851)
## 
## Deviance Residuals: 
##      Min        1Q    Median        3Q       Max  
## -2.65181  -0.70554  -0.06285   0.54526   2.19432  
## 
## Coefficients:
##                 Estimate Std. Error z value Pr(>|z|)    
## (Intercept)   -0.9814388  0.0231392  -42.41   <2e-16 ***
## Laendlichkeit  0.0007128  0.0010328    0.69     0.49    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(119.272) family taken to be 1)
## 
##     Null deviance: 51.770  on 43  degrees of freedom
## Residual deviance: 51.284  on 42  degrees of freedom
## AIC: 400.82
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  119.3 
##           Std. Err.:  49.7 
## 
##  2 x log-likelihood:  -394.818
  n Pos 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.37 0.36 – 0.39 <0.001
Laendlichkeit 1.00 1.00 – 1.00 0.490
Observations 44
R2 Nagelkerke 0.016
## 
## Call:
## glm.nb(formula = nPos01Tweet ~ Landwirtschaftsflache + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 123.1451942)
## 
## Deviance Residuals: 
##      Min        1Q    Median        3Q       Max  
## -2.58156  -0.65192   0.00469   0.52454   2.70700  
## 
## Coefficients:
##                        Estimate Std. Error z value Pr(>|z|)    
## (Intercept)           -0.872719   0.067734 -12.885   <2e-16 ***
## Landwirtschaftsflache -0.002484   0.001635  -1.519    0.129    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(123.1452) family taken to be 1)
## 
##     Null deviance: 52.562  on 43  degrees of freedom
## Residual deviance: 50.186  on 42  degrees of freedom
## AIC: 398.95
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  123.1 
##           Std. Err.:  51.4 
## 
##  2 x log-likelihood:  -392.947
  n Pos 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.42 0.37 – 0.48 <0.001
Landwirtschaftsflache 1.00 0.99 – 1.00 0.129
Observations 44
R2 Nagelkerke 0.075
## 
## Call:
## glm.nb(formula = nPos01Tweet ~ Allgemeinaerzte + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 140.5918528)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.6001  -0.8549  -0.0950   0.6092   2.2095  
## 
## Coefficients:
##                 Estimate Std. Error z value Pr(>|z|)    
## (Intercept)     -1.19583    0.11335 -10.550   <2e-16 ***
## Allgemeinaerzte  0.05295    0.02646   2.001   0.0454 *  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(140.5919) family taken to be 1)
## 
##     Null deviance: 55.865  on 43  degrees of freedom
## Residual deviance: 51.834  on 42  degrees of freedom
## AIC: 397.49
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  140.6 
##           Std. Err.:  62.5 
## 
##  2 x log-likelihood:  -391.488
  n Pos 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.30 0.24 – 0.38 <0.001
Allgemeinaerzte 1.05 1.00 – 1.11 0.045
Observations 44
R2 Nagelkerke 0.122
## 
## Call:
## glm.nb(formula = nPos01Tweet ~ Krankenhausbetten + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 152.258321)
## 
## Deviance Residuals: 
##      Min        1Q    Median        3Q       Max  
## -2.67532  -0.68158   0.03209   0.76644   2.41028  
## 
## Coefficients:
##                    Estimate Std. Error z value Pr(>|z|)    
## (Intercept)       -1.039119   0.031922 -32.552   <2e-16 ***
## Krankenhausbetten  0.011749   0.004684   2.509   0.0121 *  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(152.2583) family taken to be 1)
## 
##     Null deviance: 57.864  on 43  degrees of freedom
## Residual deviance: 51.581  on 42  degrees of freedom
## AIC: 395.44
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  152.3 
##           Std. Err.:  70.1 
## 
##  2 x log-likelihood:  -389.443
  n Pos 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.35 0.33 – 0.38 <0.001
Krankenhausbetten 1.01 1.00 – 1.02 0.012
Observations 44
R2 Nagelkerke 0.182
## 
## Call:
## glm.nb(formula = nPos01Tweet ~ Internisten + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 157.1450278)
## 
## Deviance Residuals: 
##      Min        1Q    Median        3Q       Max  
## -2.50342  -0.74224   0.01012   0.64101   2.56258  
## 
## Coefficients:
##             Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -1.05382    0.03619 -29.123  < 2e-16 ***
## Internisten  0.08104    0.03145   2.576  0.00998 ** 
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(157.145) family taken to be 1)
## 
##     Null deviance: 58.658  on 43  degrees of freedom
## Residual deviance: 51.981  on 42  degrees of freedom
## AIC: 395.15
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  157.1 
##           Std. Err.:  75.0 
## 
##  2 x log-likelihood:  -389.149
  n Pos 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.35 0.32 – 0.37 <0.001
Internisten 1.08 1.02 – 1.15 0.010
Observations 44
R2 Nagelkerke 0.191
## 
## Call:
## glm.nb(formula = nPos01Tweet ~ Kinderartze + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 133.5550779)
## 
## Deviance Residuals: 
##      Min        1Q    Median        3Q       Max  
## -2.38332  -0.91711  -0.01365   0.60325   2.23710  
## 
## Coefficients:
##             Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -1.11414    0.07337 -15.186   <2e-16 ***
## Kinderartze  0.02706    0.01352   2.002   0.0453 *  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(133.5551) family taken to be 1)
## 
##     Null deviance: 54.581  on 43  degrees of freedom
## Residual deviance: 50.573  on 42  degrees of freedom
## AIC: 397.41
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  133.6 
##           Std. Err.:  57.9 
## 
##  2 x log-likelihood:  -391.412
  n Pos 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.33 0.28 – 0.38 <0.001
Kinderartze 1.03 1.00 – 1.06 0.045
Observations 44
R2 Nagelkerke 0.122
## 
## Call:
## glm.nb(formula = nPos01Tweet ~ Kinderartze + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 133.5550779)
## 
## Deviance Residuals: 
##      Min        1Q    Median        3Q       Max  
## -2.38332  -0.91711  -0.01365   0.60325   2.23710  
## 
## Coefficients:
##             Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -1.11414    0.07337 -15.186   <2e-16 ***
## Kinderartze  0.02706    0.01352   2.002   0.0453 *  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(133.5551) family taken to be 1)
## 
##     Null deviance: 54.581  on 43  degrees of freedom
## Residual deviance: 50.573  on 42  degrees of freedom
## AIC: 397.41
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  133.6 
##           Std. Err.:  57.9 
## 
##  2 x log-likelihood:  -391.412
  n Pos 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.33 0.28 – 0.38 <0.001
Kinderartze 1.03 1.00 – 1.06 0.045
Observations 44
R2 Nagelkerke 0.122
## 
## Call:
## glm.nb(formula = nPos01Tweet ~ Einpendler + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 129.4004632)
## 
## Deviance Residuals: 
##      Min        1Q    Median        3Q       Max  
## -2.55661  -0.71096  -0.04506   0.70530   2.51686  
## 
## Coefficients:
##              Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -1.038090   0.047800 -21.718   <2e-16 ***
## Einpendler   0.001745   0.001165   1.498    0.134    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(129.4005) family taken to be 1)
## 
##     Null deviance: 53.793  on 43  degrees of freedom
## Residual deviance: 51.544  on 42  degrees of freedom
## AIC: 399.12
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  129.4 
##           Std. Err.:  56.3 
## 
##  2 x log-likelihood:  -393.124
  n Pos 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.35 0.32 – 0.39 <0.001
Einpendler 1.00 1.00 – 1.00 0.134
Observations 44
R2 Nagelkerke 0.071
## 
## Call:
## glm.nb(formula = nPos01Tweet ~ Auspendler + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 121.1910784)
## 
## Deviance Residuals: 
##      Min        1Q    Median        3Q       Max  
## -2.55555  -0.81973  -0.05132   0.76402   2.50146  
## 
## Coefficients:
##              Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -1.056670   0.064011 -16.508   <2e-16 ***
## Auspendler   0.002278   0.001645   1.385    0.166    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(121.1911) family taken to be 1)
## 
##     Null deviance: 52.165  on 43  degrees of freedom
## Residual deviance: 50.279  on 42  degrees of freedom
## AIC: 399.42
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  121.2 
##           Std. Err.:  49.9 
## 
##  2 x log-likelihood:  -393.425
  n Pos 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.35 0.31 – 0.39 <0.001
Auspendler 1.00 1.00 – 1.01 0.166
Observations 44
R2 Nagelkerke 0.060
## 
## Call:
## glm.nb(formula = nPos01Tweet ~ Asylbewerber + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 122.8011588)
## 
## Deviance Residuals: 
##      Min        1Q    Median        3Q       Max  
## -2.63483  -0.77186  -0.01889   0.60669   2.30396  
## 
## Coefficients:
##              Estimate Std. Error z value Pr(>|z|)    
## (Intercept)  -1.02806    0.06024 -17.066   <2e-16 ***
## Asylbewerber  0.01405    0.01434   0.979    0.327    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(122.8012) family taken to be 1)
## 
##     Null deviance: 52.492  on 43  degrees of freedom
## Residual deviance: 51.520  on 42  degrees of freedom
## AIC: 400.35
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  122.8 
##           Std. Err.:  52.3 
## 
##  2 x log-likelihood:  -394.348
  n Pos 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.36 0.32 – 0.40 <0.001
Asylbewerber 1.01 0.99 – 1.04 0.327
Observations 44
R2 Nagelkerke 0.031
## 
## Call:
## glm.nb(formula = nPos01Tweet ~ Arbeitslosenquote + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 131.212687)
## 
## Deviance Residuals: 
##      Min        1Q    Median        3Q       Max  
## -2.39455  -0.68914  -0.01029   0.60859   2.74923  
## 
## Coefficients:
##                   Estimate Std. Error z value Pr(>|z|)    
## (Intercept)       -1.12511    0.07378 -15.249   <2e-16 ***
## Arbeitslosenquote  0.04686    0.02185   2.144    0.032 *  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(131.2127) family taken to be 1)
## 
##     Null deviance: 54.139  on 43  degrees of freedom
## Residual deviance: 49.531  on 42  degrees of freedom
## AIC: 396.78
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  131.2 
##           Std. Err.:  55.1 
## 
##  2 x log-likelihood:  -390.783
  n Pos 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.32 0.28 – 0.38 <0.001
Arbeitslosenquote 1.05 1.00 – 1.09 0.032
Observations 44
R2 Nagelkerke 0.140
## 
## Call:
## glm.nb(formula = nPos01Tweet ~ `Beschaftigte mit akademischem Berufsabschluss` + 
##     offset(log(nTweets)), data = kreisetf, link = "log", init.theta = 116.4091408)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.5872  -0.7103  -0.0633   0.6529   2.2624  
## 
## Coefficients:
##                                                   Estimate Std. Error z value
## (Intercept)                                     -9.734e-01  1.921e-02 -50.662
## `Beschaftigte mit akademischem Berufsabschluss`  1.673e-05  4.884e-05   0.343
##                                                 Pr(>|z|)    
## (Intercept)                                       <2e-16 ***
## `Beschaftigte mit akademischem Berufsabschluss`    0.732    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(116.4091) family taken to be 1)
## 
##     Null deviance: 51.171  on 43  degrees of freedom
## Residual deviance: 51.052  on 42  degrees of freedom
## AIC: 401.18
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  116.4 
##           Std. Err.:  48.1 
## 
##  2 x log-likelihood:  -395.18
  n Pos 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.38 0.36 – 0.39 <0.001
Beschaftigte mit
akademischem
Berufsabschluss
1.00 1.00 – 1.00 0.732
Observations 44
R2 Nagelkerke 0.004
## 
## Call:
## glm.nb(formula = nNeg01Tweet ~ Stimmenanteile.AfD + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 230.9510315)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.5203  -0.7292   0.1822   0.6562   2.2737  
## 
## Coefficients:
##                     Estimate Std. Error z value Pr(>|z|)    
## (Intercept)        -1.099098   0.077798  -14.13   <2e-16 ***
## Stimmenanteile.AfD  0.001782   0.006365    0.28    0.779    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(230.951) family taken to be 1)
## 
##     Null deviance: 51.755  on 43  degrees of freedom
## Residual deviance: 51.678  on 42  degrees of freedom
## AIC: 380.52
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  231 
##           Std. Err.:  135 
## 
##  2 x log-likelihood:  -374.516
  n Neg 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.33 0.29 – 0.39 <0.001
Stimmenanteile AfD 1.00 0.99 – 1.01 0.779
Observations 44
R2 Nagelkerke 0.003
## 
## Call:
## glm.nb(formula = nNeg01Tweet ~ Laendlichkeit + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 231.9449469)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.3438  -0.7610   0.2247   0.7255   2.3064  
## 
## Coefficients:
##                 Estimate Std. Error z value Pr(>|z|)    
## (Intercept)   -1.0729594  0.0192070 -55.863   <2e-16 ***
## Laendlichkeit -0.0004027  0.0009262  -0.435    0.664    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(231.9449) family taken to be 1)
## 
##     Null deviance: 51.830  on 43  degrees of freedom
## Residual deviance: 51.642  on 42  degrees of freedom
## AIC: 380.41
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  232 
##           Std. Err.:  135 
## 
##  2 x log-likelihood:  -374.406
  n Neg 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.34 0.33 – 0.36 <0.001
Laendlichkeit 1.00 1.00 – 1.00 0.664
Observations 44
R2 Nagelkerke 0.006
## 
## Call:
## glm.nb(formula = nNeg01Tweet ~ Landwirtschaftsflache + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 403.1763344)
## 
## Deviance Residuals: 
##      Min        1Q    Median        3Q       Max  
## -2.41563  -0.68200   0.05983   0.55393   2.39396  
## 
## Coefficients:
##                        Estimate Std. Error z value Pr(>|z|)    
## (Intercept)           -1.214064   0.050167 -24.200  < 2e-16 ***
## Landwirtschaftsflache  0.003515   0.001227   2.864  0.00418 ** 
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(403.1763) family taken to be 1)
## 
##     Null deviance: 60.939  on 43  degrees of freedom
## Residual deviance: 52.721  on 42  degrees of freedom
## AIC: 373.18
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  403 
##           Std. Err.:  326 
## 
##  2 x log-likelihood:  -367.183
  n Neg 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.30 0.27 – 0.33 <0.001
Landwirtschaftsflache 1.00 1.00 – 1.01 0.004
Observations 44
R2 Nagelkerke 0.227
## 
## Call:
## glm.nb(formula = nNeg01Tweet ~ Allgemeinaerzte + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 316.9193189)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.6760  -0.7201   0.1216   0.8110   1.9623  
## 
## Coefficients:
##                 Estimate Std. Error z value Pr(>|z|)    
## (Intercept)     -0.89405    0.09287  -9.627   <2e-16 ***
## Allgemeinaerzte -0.04369    0.02193  -1.993   0.0463 *  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(316.9193) family taken to be 1)
## 
##     Null deviance: 57.126  on 43  degrees of freedom
## Residual deviance: 53.158  on 42  degrees of freedom
## AIC: 376.93
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  317 
##           Std. Err.:  212 
## 
##  2 x log-likelihood:  -370.926
  n Neg 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.41 0.34 – 0.49 <0.001
Allgemeinaerzte 0.96 0.92 – 1.00 0.046
Observations 44
R2 Nagelkerke 0.119
## 
## Call:
## glm.nb(formula = nNeg01Tweet ~ Krankenhausbetten + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 320.5334311)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.7065  -0.7126   0.1856   0.6184   2.4012  
## 
## Coefficients:
##                    Estimate Std. Error z value Pr(>|z|)    
## (Intercept)       -1.035591   0.026886 -38.518   <2e-16 ***
## Krankenhausbetten -0.007171   0.003929  -1.825    0.068 .  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(320.5334) family taken to be 1)
## 
##     Null deviance: 57.311  on 43  degrees of freedom
## Residual deviance: 53.952  on 42  degrees of freedom
## AIC: 377.55
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  321 
##           Std. Err.:  234 
## 
##  2 x log-likelihood:  -371.553
  n Neg 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.36 0.34 – 0.37 <0.001
Krankenhausbetten 0.99 0.99 – 1.00 0.068
Observations 44
R2 Nagelkerke 0.101
## 
## Call:
## glm.nb(formula = nNeg01Tweet ~ Internisten + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 319.6396469)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.7218  -0.6880   0.1325   0.6873   2.3903  
## 
## Coefficients:
##             Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -1.03149    0.03146 -32.784   <2e-16 ***
## Internisten -0.04466    0.02745  -1.627    0.104    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(319.6396) family taken to be 1)
## 
##     Null deviance: 57.266  on 43  degrees of freedom
## Residual deviance: 54.628  on 42  degrees of freedom
## AIC: 378.27
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  320 
##           Std. Err.:  239 
## 
##  2 x log-likelihood:  -372.27
  n Neg 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.36 0.34 – 0.38 <0.001
Internisten 0.96 0.91 – 1.01 0.104
Observations 44
R2 Nagelkerke 0.080
## 
## Call:
## glm.nb(formula = nNeg01Tweet ~ Kinderartze + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 280.4532026)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.6692  -0.7991   0.1105   0.6567   2.2693  
## 
## Coefficients:
##             Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -0.99806    0.06269  -15.92   <2e-16 ***
## Kinderartze -0.01491    0.01146   -1.30    0.193    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(280.4532) family taken to be 1)
## 
##     Null deviance: 55.094  on 43  degrees of freedom
## Residual deviance: 53.416  on 42  degrees of freedom
## AIC: 379.04
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  280 
##           Std. Err.:  189 
## 
##  2 x log-likelihood:  -373.042
  n Neg 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.37 0.33 – 0.42 <0.001
Kinderartze 0.99 0.96 – 1.01 0.193
Observations 44
R2 Nagelkerke 0.052
## 
## Call:
## glm.nb(formula = nNeg01Tweet ~ Kinderartze + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 280.4532026)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.6692  -0.7991   0.1105   0.6567   2.2693  
## 
## Coefficients:
##             Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -0.99806    0.06269  -15.92   <2e-16 ***
## Kinderartze -0.01491    0.01146   -1.30    0.193    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(280.4532) family taken to be 1)
## 
##     Null deviance: 55.094  on 43  degrees of freedom
## Residual deviance: 53.416  on 42  degrees of freedom
## AIC: 379.04
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  280 
##           Std. Err.:  189 
## 
##  2 x log-likelihood:  -373.042
  n Neg 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.37 0.33 – 0.42 <0.001
Kinderartze 0.99 0.96 – 1.01 0.193
Observations 44
R2 Nagelkerke 0.052
## 
## Call:
## glm.nb(formula = nNeg01Tweet ~ Einpendler + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 276.620968)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.6853  -0.7905   0.1929   0.6372   2.1618  
## 
## Coefficients:
##               Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -1.0273848  0.0401375  -25.60   <2e-16 ***
## Einpendler  -0.0012889  0.0009617   -1.34     0.18    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(276.621) family taken to be 1)
## 
##     Null deviance: 54.862  on 43  degrees of freedom
## Residual deviance: 53.067  on 42  degrees of freedom
## AIC: 378.91
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  277 
##           Std. Err.:  182 
## 
##  2 x log-likelihood:  -372.91
  n Neg 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.36 0.33 – 0.39 <0.001
Einpendler 1.00 1.00 – 1.00 0.180
Observations 44
R2 Nagelkerke 0.056
## 
## Call:
## glm.nb(formula = nNeg01Tweet ~ Auspendler + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 225.9861334)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.4916  -0.7299   0.2734   0.6457   2.2194  
## 
## Coefficients:
##               Estimate Std. Error z value Pr(>|z|)    
## (Intercept) -1.0608678  0.0557298 -19.036   <2e-16 ***
## Auspendler  -0.0004539  0.0014311  -0.317    0.751    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(225.9861) family taken to be 1)
## 
##     Null deviance: 51.374  on 43  degrees of freedom
## Residual deviance: 51.272  on 42  degrees of freedom
## AIC: 380.49
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  226 
##           Std. Err.:  129 
## 
##  2 x log-likelihood:  -374.49
  n Neg 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.35 0.31 – 0.39 <0.001
Auspendler 1.00 1.00 – 1.00 0.751
Observations 44
R2 Nagelkerke 0.003
## 
## Call:
## glm.nb(formula = nNeg01Tweet ~ Asylbewerber + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 225.2821677)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.4490  -0.8290   0.2208   0.6804   2.3268  
## 
## Coefficients:
##               Estimate Std. Error z value Pr(>|z|)    
## (Intercept)  -1.088355   0.051406 -21.172   <2e-16 ***
## Asylbewerber  0.002602   0.012086   0.215     0.83    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(225.2822) family taken to be 1)
## 
##     Null deviance: 51.320  on 43  degrees of freedom
## Residual deviance: 51.274  on 42  degrees of freedom
## AIC: 380.55
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  225 
##           Std. Err.:  128 
## 
##  2 x log-likelihood:  -374.547
  n Neg 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.34 0.30 – 0.37 <0.001
Asylbewerber 1.00 0.98 – 1.03 0.830
Observations 44
R2 Nagelkerke 0.002
## 
## Call:
## glm.nb(formula = nNeg01Tweet ~ Arbeitslosenquote + offset(log(nTweets)), 
##     data = kreisetf, link = "log", init.theta = 316.4377676)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.7426  -0.5709   0.1249   0.6754   2.2982  
## 
## Coefficients:
##                   Estimate Std. Error z value Pr(>|z|)    
## (Intercept)       -0.97627    0.06136 -15.910   <2e-16 ***
## Arbeitslosenquote -0.03042    0.01803  -1.688   0.0915 .  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(316.4378) family taken to be 1)
## 
##     Null deviance: 57.101  on 43  degrees of freedom
## Residual deviance: 54.257  on 42  degrees of freedom
## AIC: 378.05
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  316 
##           Std. Err.:  236 
## 
##  2 x log-likelihood:  -372.047
  n Neg 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.38 0.33 – 0.42 <0.001
Arbeitslosenquote 0.97 0.94 – 1.00 0.091
Observations 44
R2 Nagelkerke 0.086
## 
## Call:
## glm.nb(formula = nNeg01Tweet ~ `Beschaftigte mit akademischem Berufsabschluss` + 
##     offset(log(nTweets)), data = kreisetf, link = "log", init.theta = 232.8494511)
## 
## Deviance Residuals: 
##     Min       1Q   Median       3Q      Max  
## -2.4962  -0.7562   0.2360   0.6540   2.2769  
## 
## Coefficients:
##                                                   Estimate Std. Error z value
## (Intercept)                                     -1.076e+00  1.626e-02 -66.191
## `Beschaftigte mit akademischem Berufsabschluss` -1.398e-05  3.629e-05  -0.385
##                                                 Pr(>|z|)    
## (Intercept)                                       <2e-16 ***
## `Beschaftigte mit akademischem Berufsabschluss`      0.7    
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Negative Binomial(232.8495) family taken to be 1)
## 
##     Null deviance: 51.898  on 43  degrees of freedom
## Residual deviance: 51.751  on 42  degrees of freedom
## AIC: 380.45
## 
## Number of Fisher Scoring iterations: 1
## 
## 
##               Theta:  233 
##           Std. Err.:  137 
## 
##  2 x log-likelihood:  -374.447
  n Neg 01 Tweet
Predictors Incidence Rate Ratios CI p
(Intercept) 0.34 0.33 – 0.35 <0.001
Beschaftigte mit
akademischem
Berufsabschluss
1.00 1.00 – 1.00 0.700
Observations 44
R2 Nagelkerke 0.005