python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Stratified sampling with multiple variables and probability proportional to size
I have a dateset that looks something like this
library(tidyverse)
library(TeachingSampling)
data(Lucy)
Lucy <- Lucy %>% select(ID,Level,Zone,Employees,SPAM)
head(Lucy)
ID Level Zone Employ...
Alex
Votes: 0
Answers: 0
Function to modify a list of lists in order to prevent repeated numbers within sublists is not working completely
Community of Stackoverflow:
I have a lists of sublists of sublists named dicts that was built by taken randomly from a df's index some values. The values can be repeated within the first level of the ...
Arnoldo Oliva
Votes: 0
Answers: 1
How to create a randomised field survey roster in R?
I would like to create a random field survey roster in R.
I have a team of 5 people surveying every day for 7 days. I need to split 4 people into 2 teams, with 1 person off each day. Each team visits ...
Cheloniax
Votes: 0
Answers: 0
How to generate a smooth 2D travelling wave in python?
I want to generate a matrix or a 2d array of size (M*N) where each column of the matrix (2D array in python) contain the data of a travelling sine wave, y = sin(k*x-w*t). So, I use the following scrip...
Alan22
Votes: 0
Answers: 0