Linked Questions

5 votes
2 answers
12k views

Generating a simulated dataset from a correlation matrix with means and standard deviations [duplicate]

I have a standard correlation matrix from an academic paper with means and standard deviations: ...
histelheim's user avatar
  • 3,063
2 votes
4 answers
8k views

Sampling data to have specific mean and standard deviation [duplicate]

I have a data that I want to sample such the resultant distribution of values should have specified mean and standard deviation. I can think of rejection sampling to achieve this however that seems to ...
avi's user avatar
  • 409
0 votes
1 answer
2k views

How to Simulate Random Multivariate Correlated Data and Uncorrelated Data for a given correlation coefficient and P value in R? [duplicate]

I want to simulate data with the same effect sizes and structure of my real data to perform sensitivity analysis for a pathway analysis(sem). Wesley has ...
Qingshan's user avatar
-1 votes
2 answers
150 views

how do you obtain a data set (around 10,000 data points) with a mean of 0 and standard deviation of 1. [duplicate]

I need a data set with a mean of 0 and stdv of 1. how do i get this?
chang duncan's user avatar
0 votes
1 answer
175 views

Generate data if parameters for population are known [duplicate]

I know the mean and standard deviation of a population, and its minimum and maximum value. How can I generate each data value from those parameters (using R) with the assumption that the data is ...
rasyidstat's user avatar
0 votes
0 answers
90 views

transforming simulated data to have the desired mean and variance [duplicate]

I am working on simulation of data, and this is just the first step of what I am trying to do. I am first simulating data based on a correlation matrix (as this is what I want). I used the R code ...
kristen's user avatar
  • 81
0 votes
0 answers
44 views

Get random numbers that sum to a value N and have a specific variance [duplicate]

As the title says, I need numbers that sum to a value N lets say 0.9 and have a specific variance. My background is not in mathematics so please be gentle with the terms. Any help is appreciated.
Laughing Man's user avatar
0 votes
0 answers
28 views

How to simulate two datasets that satisfy specific constraints such as having specific mean , standard deviation, and correlation coefficient? [duplicate]

I know that generating different random datasets having certain standard deviation and mean values are possible. However, I'm just wondering if it's also possible to generate, let's say 2 datasets, ...
ibrahim erkol's user avatar
23 votes
3 answers
14k views

What is the relationship between the Beta distribution and the logistic regression model?

My question is: What is the mathematical relationship between the Beta distribution and the coefficients of the logistic regression model? To illustrate: the logistic (sigmoid) function is given by $...
tomka's user avatar
  • 6,724
11 votes
2 answers
1k views

Why not perform meta-analysis on partially simulated data?

Background: A typical meta-analysis in psychology might seek to model the correlation between two variables X and Y. The analysis would typically involve obtaining a set of relevant correlations ...
Jeromy Anglim's user avatar
3 votes
2 answers
970 views

How to transform a normal random variable such that I can simulate normal samples between the range of 1 and 45?

How to transform a normal random variable such that I can simulate normal samples between the range of 1 and 45? Do I need to do a jacobian transformation ?
user1769197's user avatar
  • 1,256
3 votes
2 answers
2k views

Transform data to have specific mean, minimum and maximum?

I have found this in regards to transforming to specific mean and maximum, but I need to specify a minimum as well. Is there a way to do so? I believe it will be a more complicated solution similar ...
badminer's user avatar
3 votes
1 answer
5k views

Mann-Whitney U test when only summary data (mean, sd, sample size) are available

When raw data is not available, which normally occurs when we obtain our data from different scientific papers, how is it possible to perform a Mann-Whitney analysis to test whether two samples are ...
antecessor's user avatar
2 votes
1 answer
3k views

Generate data with skewed distribution and known percentiles, mean and median

I'm trying this one again as my imprecise use of language unfortunately confused my last attempt at this question... I am trying to recreate some data from a publication. The study was on levels of ...
Matt Ellis's user avatar
2 votes
4 answers
168 views

Simple Question regarding t-tests

I have the mean from a previous study (the Brief Symptom Inventory) that I would like to compare the mean found in my study. Both samples have a population over 100. I do not have the entire data set ...
user49003's user avatar
3 votes
1 answer
992 views

From unevenly spaced values, a normal distribution that sums to the mean

I have input data that is $N$ items and each has several properties, one of which is called, say, $P$. Their values of $P$ are unevenly spaced between 0 and 1, and may even repeat between items. For ...
DrSandwich's user avatar
1 vote
0 answers
2k views

How to simulate data in R given mean, median, and range?

I would like to simulate n numbers (all within the range between a and b, n being an even number) using R, and the mean (u) and median (m) is given. If I use runif then the standard deviation is ...
asdf's user avatar
  • 11
1 vote
2 answers
201 views

How to generate normal variates subject to mixed constraints?

I want to randomly generate 1000 normal variates (using rnorm, e.g.) that have mean 100. 25% of the 1000 numbers should be over 110. How can I do this in ...
rlost's user avatar
  • 11
1 vote
2 answers
660 views

how to generate random data based on simple statistical meassures

0 I currently have a test data set that has 500k data points. I have an algorithm that process that data and returns some information. In order to establish the statistical significance of the ...
lucas rodriguez's user avatar
3 votes
1 answer
409 views

Simulating population-level logistic regression model with pre-specified prevalence

I'm interested in simulating the following prospective, population-based model for binary outcome $Y_i$, and independent subjects $i=1,\dots,N$: $$ \Pr(Y_i=1\mid X_i,G_i)=\frac{1}{1+\exp(-(\alpha_0 + ...
stats134711's user avatar
4 votes
1 answer
212 views

Generate nonnegative variates with mean 1 and specified variance-covariance

Problem In several applications in surveys, it would be helpful to be able to generate a set of $R$ $n$-dimensional variates with the following properties: Has mean vector $1$ Has a specified ...
bschneidr's user avatar
  • 506
1 vote
1 answer
107 views

How can I shift the average probability keeping constraint (0.0:1.0)?

I have a large datasets of values that range from 0 to n. I am interpreting the values as probabilities for a later pseudo-random selection process. To make the values serve as probabilities, I ...
philologon's user avatar