# Questions tagged [stratification]

A sampling technique in which the population of interest is partitioned into subsets ("strata") based on characteristics known at all units before sampling.

231 questions
Filter by
Sorted by
Tagged with
24 views

### Logistic regression: age covariate within age group strata

I am using logistic regression to calculate the OR of falling using certain predictors (e.g. strength), age is also a confounder. The effect of age appears linear - risk of falling incrementally ...
15 views

### How to make a stratification in a penalized logistic model with the penalized function?

I use the R package "penalized" and I want to fit a stratified penalized logistic regression model. In the package vignettes, I found: It is possible to include an offset term in the model. ...
4 views

### Base weights/Relative weights when sampling strata change

I have survey responses from a survey where the sampling plan was stratification with sampling rates proportional to the square root of the number of households. The plan created 12 strata, and the ...
22 views

### Stratified sampling - use of proxy variable

For splitting of the data into train/test/val I use stratified sampling. Is it appropriate to define strata using information extracted from the dataset? E.g. use machine-learning to model proxy ...
44 views

### Data split using model's error

For splitting of the data into train/test/val I use stratified sampling. Then I confirm that metadata distributions represent the original dataset well enough. I want to start considering error of the ...
8 views

### Jensen-Shannon Distance between two Stratified Sampled Tabular Datasets

I have 100 unique joint probability mass functions with a dataset noting the prevalence of instances from each joint pmf, like this: The total amount of instances in this case would be 16,073. Each ...
65 views

### Precision and recall estimated with stratified sampling

I have a population including rare events (let's call them "event A") and I want to evaluate the precision and recall of a new algorithm to detect the rare events. In the actual population, ...
11 views

### Using stratified k-fold cross validation for time series model selection

This thread talks about the use of k-fold cross-validation for time series model selection where using the rolling basis approach is recommended, but I'm wondering how one would adapt this to a ...
61 views

### Sample Size determination at coutry level or states levels

A country is stratified into states. A researchers wants to carry out a survey with a main requirement of state level data representation. I wonder if sample size should be determine using country ...
24 views

### Stratified Sampling from a population according to given weights

I have a population and i want to take a sample from it in order to examine a mean of a characteristic (say $p$ the probability of having an infringment).My population is 13996 and are divided into 7 ...
11 views

### Balanced Allocation of Subjects to Base/Target

Lets say I'm conducting an experiment / AB test on a very volatile measure. I have a set of good estimators for this measure, which is known to me at the moment I need to assign each subject/...
31 views

### Stratified sampling ratio with srswor

The variable X under study have rectangular distribution with interval (a, a+ d ) the interval is divided into k equal subintervals which form k equal strata of equals sizes . From each stratum ...
39 views

### Is sampling by even/odd serial numbers a simple random sample?

I'm working on a project where each member of the population has a serial number. Each serial number is issued sequentially, so smaller serial numbers reflect older records. I'm drawing a sample of ...
26 views

### Random draw and fraction of each class is arbitrary [closed]

I am working on a dataset with binary outcome variable $\{0,1\}$. The data provider said samples are drawn randomly from the population while the sample proportion of outcome $0$ is arbitrarily set. ...
87 views

### Bootstrap to control for confounding variable - sample size

I am interested in the effect of dichotomous variable A on several scores for a sample size of N = 469 (observational data). Most scores have a non-normal, asymetrical distribution. Here's the ...
11 views

### What interval should I use to describe the variation caused by the randomness in stratified random sampling?

I have a population with n individuals. I decide that stratified random sampling is appropriate and I randomly survey a single individual in each strata, ultimately surveying ...
27 views

### validation and test set definition for active learing with rare classes

Context I've got an active learning problem with an event rate of about 1%. The data is a panel, individuals over time. We have a proxy label that is highly correlated with the true label within ...
90 views

### What is the best cross-validation scheme for churn prediction with time varying data per client?

I am looking for the best cross-validation strategy to test the performance of a churn prediction machine learning model (classification). The model predicts if a client is going to churn in the next ...
10 views

### Comparing two sample proportions where one proportion (p1) is a stratified sample and the other is a convenience sample taken from p1 (p2)

I have taken a stratified sample of vaccination clinics from a population in the US based on a categorization of A, B, C. I have sampled 2k clinics from A, 1k from B, and 1k from C. I am interested in ...
53 views

### Linear regression in very unbalanced data

I hope you can help me with this question. I have a dataset with several classes (around 25) and they are very unbalanced. Some classes have thousands of subjects, others hundreds, and others just a ...
54 views

### Stratification of Random Walk Jumps in Metropolis-Hastings

I aim to achieve variance reduction in Random Walk Metropolis Hastings algorithm by introducing stratification to the random walk jumps. What I have tried is to make use of Latin Hypercube Sampling in ...
112 views

### Stratification McNemar Test in R

I have categorical data before and after a condition (paired data) about preferences (yes/no) and I have other variables such as sociodemographic values (sex, ethnicity, etc). What I need to know if ...
155 views

### Am I correct in my understanding adjustment for covariate vs. stratyfing by it in the Cox regression?

I'm trying to understand the difference in a Cox model between adding a single categorical covariate like sex = {male, female} and doing stratification by it. I'm not saying about such trivial thing ...
41 views

### Why use a stratified log-rank test if we balance over strata anyway?

When comparing survival data over time, we can use the log-rank test. An extension of this is the stratified log-rank test, which adjusts for variables. Let's say we wanted to adjust for the effect of ...
15 views

### If I want to control for race in SEM, should I include race in the model, or should I run the model multiple times with 1 race category at a time?

I am running a SEM model. There is 1 independent variable, 1 mediator, and 2 dependent variables. All variables are continuous. I want to control for race (White, Black, Latino). To control for race, ...
14 views

### In a stratified RCT, should strata be combined if a too small sample size is attained in randomization?

My question refers to a situation where the number of participants in some strata is unexpectedly low. Should randomization proceed in the same way as declared in the Protocol, i.e. by performing ...
18 views

### Relative increase of variance for stratified simple random sample

My attempts: I know that for a stratified simple random sample, the variance of $\hat{t}_{y,st}$ is $V_p(\hat{t}_{y,st})= \sum_{h=1}^L N_h^2(1-\frac{n_h}{N_h})\frac{S_h^2}{n_h}$ where $S_h^2$ is the ...
44 views

### Is there a need to account for confounders if crude association is not significant?

Background: Swallowing exercises are prescribed to head and neck cancer patients during radiotherapy to prevent swallowing impairment Aim: Determine impact of swallowing exercise compliance on ...
37 views

### How to weight samples in a subsample of a stratified sample?

Suppose I'm first interested in computing the percentage of people in a certain town with brown eyes. However, due to some constraints I end up with the following stratified sampling set up: N = ...
8 views

### Computing estimates for segments of a sample

Suppose I want to estimate the average body weight of people in a population. I use a stratified sample of 50% men and 50% women and compute the desired metric. Next, I want to compute the average ...
14 views

### Post-stratification: What are the possibilities if your data has too many factor levels to run?

The example below is a simplified version of my actual problem and data. I have a sample of n=2000 observations of individuals surveyed throughout a country in a certain year. So my actual data is not ...
49 views

### How to do augmentation and k-fold cross validation?

I am solving one NLP problem which by default gave me train and test data. Test data has no labels while train has. Now I split train dataset into train(I will call this as updated train dataset) data ...
8 views

### Would very small stratum be a problem for ANCOVA model?

I know that for logistic regression, if you get an empty cell, the model may not run at all. How about continuous outcome? If one of the categorical predictors has very small stratum, would there be a ...
14 views

### Determine stratified sample size $n$ with confidence level 95%, if required $SE$ of the estimated mean is given

I need to calculate sample size $n$, so that $SE$ of the mean would be 4 points. There are $55$ units in total in the $I$ group. $N_2 = 80$ in the $II$ group and $N_3=65$ in the $III$ group. The ...