# Questions tagged [count-data]

Count data are non-negative integers representing whole amounts.

858 questions
Filter by
Sorted by
Tagged with
1 vote
10 views

### How to Assess Multicollinearity for Independent Count and Rate Variables

How do I test an independent variable for multicollinearity if it comes from a Poisson or Negative Binomial distribution? A common approach for testing the multicollinearity of a model's independent ...
• 227
19 views

### compare whether 3 factors of a categorical variable are distributed differently

For every subject in a study, I have 40 responses that can be: a,b,c. So it would look somthing like sub | trial | resp 1       1        a 1       2        b .... 50   ...
1 vote
18 views

### Correct loss function and metric for regression of count data in neural network

I am using a convolutional neural network to predict the number of occurrences of a certain pattern in time series data. Since there might be potentially any count of such patterns in a time series, I ...
• 11
1 vote
44 views

### Appropriate visualizations for exploring count data

I am preparing to do a regression model (probably Poisson) where the goal variable is count data (number of times a patient received a blood transfusion). I will have to do variable selection out of ...
• 213
1 vote
16 views

### Can very large count outcomes be treated as continuous variables?

I have very little expertise with count outcomes and analysis of them, but I understand that, in general, they cannot be treated as continuous dependent variables for the purpose of analysis due to ...
1 vote
13 views

### Negative Binomial Regression with Moderation Effect

In H1, I predict the positive effect of a program on the consumer spendings. In H3, I want to predict the positive effect of a program on the number of referrals, while also predicting the positive ...
• 11
32 views

### Interpreting DHARMa residuals for a glmer.nb regression using count data

1 I am modeling overdispersed count data (detection of species) in a GLMM to account for changes in the number of detections of the individual (response variable) to covid period, area (rural vs urban)...
66 views

### How to analyse count data

I have count data on bird abundance obtained from 12 locations. I have summed the abundance for each site as I have been sampling each location twice and there is no significant difference between ...
• 31
19 views

### Comparing multiple proportions with zero/1 values

I have a dataset (see below) where I've located bird nests of five different species over four survey periods. For each bird nest I recorded if these were actively being used or not. I want to compare ...
18 views

### Can the offset variable be smaller than the outcome variable in a Poisson model?

I am modeling a number of bags of local crop harvested from a village in a given harvest over time. The village is divided into 48 communities and I have data on the total number of bags of crops from ...
106 views

### Why does log-linear analysis seem to ignore the Poisson regression equidispersion assumption?

As far as I understand it, log-linear analysis is based on the use of a Poisson regression. This is what I understood from various online resources, like this online tutorial or this text whose intro ...
• 127
1 vote
70 views

### How to interpret an interaction in a negative binomial?

I'm investigating the influence of top management team nationality diversity (TMTdiv, continuous between 0-1) and board nationality diversity (Boarddiv, continuous between 0-1) on firm ...
• 435
8 views

### Combining results of 2 survey sources

In my study, I have data from 2 survey sources (from 2 groups of people). They are very different from each others. A few major differences: First group did not get paid to answer the survey while ...
1 vote
30 views

### How can I calculate common digits in daily numbers?

We have daily numbers with 4 digits and 3 digits. These winning numbers often,but not always, have 1 or more digits the same. It would seem there should be a strategy to calculate the percent of time ...
1k views

### Estimating probability of attack in Ukraine, given count data

I was looking at some attack count data in Ukraine for different days. The data is gathered from the ACCLED dataset, and there is a picture below. The picture shows individual attacks, but I can apply ...
• 1,118
18 views

### Statistical Analysis on R with Count/Observation Data, multiple explanatory variables [duplicate]

I am running an analysis using R to determine if boat activity impacted shark residence times. I have observation data that includes number of observations within ONE observation event (e.g. number of ...
14 views

### Urban Site observation data analysis suggestion

I have conducted site observation at four different locations for a period of 20 mins. (Total of 30 observations for each site). During the site observation, the pedestrian counts, age group and ...
86 views

### Confidence interval for multiple samples of ratios of counts (in R)

Data and objective I have count data from two groups, A and B, from across multiple samples. I want to estimate the average ratio of A to B across all samples, along with a confidence interval. Issues ...
38 views

### Meta-analysing impact of Covid pandemic on risk for perforated appendicitis

I am analyzing the impact of the change in the management of appendicitis during the covid pandemic. I have paired data from 31 reports comparing the number of operations for perforated and ...
• 161
27 views

### PGLM : negative binomial : In sqrt(diag(se)) : NaNs produced

I have a question related to the count model. I am trying to understand whether pickup and drop-offs influence road crash. Therefore, I have road crashes aggregated at the census tract level as my ...
36 views

### Completely different inferences between single-trial difference and meta-analysis comparison

I have the following data ...
• 429
58 views

### Testing trends in proportions with R: prop.trend.test vs rstatix::prop_trend_test

I have an ordinal variable (disease severity index, scores = 0, 1, 2, 3) and presence/absence counts (number of people with presence/absence of virus). I am testing whether or not incidence of the ...
• 1
25 views

### Should observation level random effects be included when modeling dispersed counts in a negative binomial model?

I am trying to specify a model of counts from very different observation sites. Including site level random effects would definitely make sense since there are aspects that are certainly not covered ...
49 views

### I want to make sure the use of Poisson count model OR negative binomial model is right for my study

I have a planned study to conduct in few weeks. As it is my first time to deal with a 'count' dependent variable, I have been searching on this website what statistics tools I should use. I have two ...
• 1
17 views

### Appropriate correlation statistic for binary and count data

I have two variables where I want to report their correlation. One is a count variable that ranges from 0-3, and the other is a binary variable that is 0/1. ...
• 155
18 views

### Test for statistical significance between groups in categorical count data with multiple samples

There are two groups/genotypes of mice (WT, KO). For each genotype, four mice were separately used to determine the identities of thousands of individual cells from a particular organ, assigning them ...
• 1
35 views

### Cross validation and aggregated data for count models

I know that this question has already been formulated in other posts where there are quite comprehensive answers, I refer especially to these two explanations (thread1, thread2). However I continue to ...
1 vote
66 views

### Zero inflation with no zeros in data?

I am investigating feeding rates in great apes. Because I am using count data, I built a generalized linear model with a Poisson link function. So I put the number of items in a bundle as a response ...
• 11
1 vote
40 views

### Bayesian GLM where the response variable is count classes

Description of data I have to analyze some data where the response variable is the counts of number of insects observed feeding on a bait at many time points. The treatments are three different types ...
• 123
72 views

### Can you compare negative binomial models by AIC?

I have a question about comparing negative binomial models by AIC versus QAIC. My dependent variable is a count, and I have one random term (I am using generalised linear mixed models fitted with the ...
43 views

### Can Marginal effects and Incidence Rate Ratios be exactly the same?

Consider a boring count data model of citations of an article in relation to its page number and the price of the journal. I prefer an ordinary negative binomial regression. Can it be that the ...
• 403
1 vote
42 views

### How to identify the distribution for regression models

I am trying to analyze hunting harvest data with response-variable being individuals/1000 hectares and a series of explanatory variables to describe it. Response variable is continuous (fractionals), ...
15 views

### Estimating Proportions with Uncertainty from the American Community Survey

I'm interested in estimating Bayesian statistics related to some proportions from the American Community Survey (ACS). The American Community Survey has several useful handbooks here and two pertinent ...
• 141
84 views

### R: Can I use percentages instead of counts in a chi-squared & pairwise test? [duplicate]

I have count data with a corresponding time and place of each count, but my research question is about proportions. Is it valid to run a chi-squared test on percentages rather than count data? I'm ...
• 691
32 views

### How to analyze percent occurrence data (as counts or proportions)?

My example data: ...
• 691
17 views

### Using Julian Day and Count Data in the same GLM

I have count data in a poisson distribution. My goal is to determine whether the 5 habitats surveyed (predictor variable) differ in their number of individuals (animals) (the response variable). I am ...
83 views

### Does this Python function correctly implement a beta-binomial test?

Note: I, originally, asked this question on codereview.stackexchange.com (see here), but I was advised to ask the question here to find out whether the statistics/math used in the function is correct (...
• 339
27 views

### Estimating Right Censored Data

I'm a newbie at Math, and I am just getting my feet wet when it comes to understanding math and statistics so please forgive my ignorance or question if it's already been answered or if materials are ...
• 101
40 views

### Adding count variable IV to Negative Binomial GLM improves fit but causes overestimation

I am currently developing a negative binomial GLM for road safety analysis (known as an “Accident Prediction Model”). Each data point represents a section of road; the dependent variable is the number ...
24 views

### Distribution for the number of Gaussian random variables in a given bin (or interval)?

Suppose I have N Gaussian random variables (assume 1d) with mean $x_n$ and standard deviation $\sigma_{x,n}$. Suppose I then generate samples from these random variables, and bin the generated data ...
1 vote
173 views

### What Statistical Test should I use to compare count data using two grouping variables?

My data represents the count of mutations by gene in two groups cases and ctrl. I would like to do comparison gene-wise between the two groups. But in my case I don’t think anova is appropriate since ...
1 vote
37 views

### Modelling the difference of two zero-inflated count variables

I'm trying to model count data on house sparrows numbers before and after mitigation measures and want to find out which of these measures affect their numbers (if any). I'm however not entirely sure ...
• 11
1 vote
131 views

### Interpreting Quadratic Variables in Negative Binomial Regression

I want to include a quadratic term for age in my negative binomial model as past work has suggested it may be curvilinear. I know how to interpret a quadratic coefficient in OLS, but am unsure with ...
• 11
17 views

### Can a variable derived using count data be used to model zero inflation in a Zero-Inflation Poisson model?

Say I have a zero-inflation Poisson model that is count ~ var1. My count data is inflated by zeros because count is the number of symptoms of a particular disorder. If count > 5, and those symptoms ...
1 vote
52 views

### What are examples of symmetric copulas $f(x,y)=f(y,x)$ having relative minima for $f(x,x)$?

In a previous posting on this site RepulsiveBehavior I attempted to detail a quantum-information-theoretic separability/entanglement problem I am pursuing. Detailed issues of sampling sizes for a data ...
64 views

### Pair-matched count regression in R with offset?

I need to conduct a pair-matched count regression in R. Specifically, my data looks as follows: ID Exposure Occurrence Area 1 0 7 50 1 1 5 55 2 0 6 70 2 1 8 74 3 0 4 45 3 1 9 62 I need the ...
20 views

### Intraclass correlation coefficiant for underdispersed count data

I would like to calculate the intraclass correlation coefficiant (ICC). My data are counts, approximately normal distributed and the variance is smaller than the mean. If I am not mistaken, this ...
• 11
15 views

### Difference Between "General" and "Canonical" in Statistics

I often hear the words "general" and "canonical" used in statistics - for example, "generalized linear models" and "canonical solutions". For example, I have ...
• 5,738