A population is a complete set of items that share at least one common characteristic.
Questions tagged [population]
183 questions
2
votes
1 answer
WPF, MVVM Populate combobox using another combobox selected item
I have 2 comboboxes that the selected item of the first needs to change the itemsource of the second and it doesn't.
Here is my xaml...

Shlomi.K
- 73
- 2
- 13
2
votes
1 answer
SQL Query to get limited number of results based on column entry
I'm struggling with SQL right now.
Ive got a table cities that contains the rows id, name, country, population.
ID | name | country | population
1 | Shanghai | CN | 14608512
2 | Buenos Aires | AR | 13076300
3 |…

michi
- 21
- 1
1
vote
2 answers
How to create a custom population generator with the R GA package?
I'm working on an optimsation problem using R's GA package with a 'permutation' type genetic algorithm. I need to introduce some parameters for how the initial population is generated before parents selection and crossover. The reason for this is:…

kenmore17
- 41
- 3
1
vote
1 answer
is there an R function for pooling data by rows?
I'm fairly new to R and I've been struggling with how to make this work:
I'm looking to pool the population numbers across several years (to match a smaller pooled dataset). So instead of having yearly population data, I would combine rows in…

Kmor
- 13
- 2
1
vote
1 answer
Consumer-resource model with dynamic growth rate in R with deSolve
I have the following 3 main pieces of code that first plots rainfall, then plots rainfall's effect on prey (resource) growth rate, then plots consumer-resource (herbivore-plant) dynamics using a constant growth rate. My goal is to implement the…

Clara
- 13
- 4
1
vote
0 answers
How to use database table for population of agents with parameter that is name of Space Markup Region parameter (converted from shapefile)?
In Anylogic I used a shapefile to import my own Regions into my GIS map. Then I converted the Shapefile into Space Markup. Now I can see my regions and if I click on it, it displays the correct name with "GIS Region" behind it.
(However if I search…

Ella
- 125
- 6
1
vote
1 answer
How can I take a subsample having almost the same mean and standard deviation of the population?
If this is my data frame:
> length <- rep(11:17, 200)
> mean(length)
[1] 14
> sd(length)
[1] 2.001
How can I take a random subsample from the data frame (length) but having almost the same mean and standard deviation?

I. Sam
- 13
- 3
1
vote
0 answers
Using Bootstrapping when you know that your sample is biased
I have a sample with wage data of which I know it is not representative of the data. To be specific, there are many high-paying wages of pastors but I know that they made up at most like 0.5% of the workforce but like 25% of my sample. Is it…

Simon
- 11
- 1
1
vote
1 answer
Change position of labels in population pyramid (ggplot2)
I'm having a problem with labeling my population pyramid in R Studio. I would like to adjust the positions of the labels in two different directions, depending on which side they are at. More precisely, I want the values on the left side (males) to…

Keni
- 63
- 5
1
vote
1 answer
Setting limits to a rnorm function in RStudio
Good evening,
Even though I know it will "destroy" an actual normal distribution, I need to set a maximum and a minimum to a rnorm function in R.
I'm using survival rates in vultures to calculate population trends and although I need it to…

arnausc
- 13
- 3
1
vote
0 answers
Monte carlo simulations in R
In the model below (built in R), I want to include 20% population variability on the parameter Rec_den_WT and v and then run Monte Carlo simulations for 100 individuals. So, I want to have a log-normal distribution of these parameters with standard…

Khushhi
- 61
- 4
1
vote
1 answer
Different color for each populations in cmap
Say I have four arrays and also an x and y array
arr1
arr2
arr3
arr4
xarr
yarr
Each of these 4 arrays has the same length as my x and y array and they each have a value of how "strong" that population is at that particular point in x and y. My plan…

Douglas Grion Filho
- 25
- 5
1
vote
1 answer
How do I conduct a One-Sample Chi-Squared Test On Population Variance in R?
First of all, I'm aware that I can use var.test(x, y) for inference on the ratio of two population variances, but my question is regarding inference on one population variance.
According to this source, I should use the function varTest() to conduct…

Arif AH
- 25
- 4
1
vote
2 answers
How to Determine the Confidence Interval for a WEIGHTED Population Proportion with R
TASK: COMPUTE THE WEIGHTED SHARES OF MANIFESTATIONS OF A CATEGORICAL VARIABLE AND FIND CONFIDENCE INTERVALS AROUND THOSE WEIGHTED SHARES
library(dplyr)
set.seed(100)
Make up data set with a categorical variable and a weight variable:
df <-…

Andi Lope
- 33
- 1
- 6
1
vote
0 answers
How to fix "data will plot plot correctly/data changes"
I created a population model that at points, was doing exactly what I wanted it to do. However, as I began to continue rerunning the code to yield continued correct results, to verify I had done the code correctly, the data would change in an…

Colman Betler
- 21
- 3