Skip to main content

Questions tagged [simulation]

A vast area which includes generating results from computer models.

2 votes
2 answers
105 views

I am interested in running some simulations on how well some non-parametric tests can work on paired data. But I am not exactly sure how to simulate such paired data. An obvious (?) approach would be ...
jginestet's user avatar
  • 13.2k
1 vote
0 answers
51 views

Hello everyone, Maybe you have heard of the famous Buffon's Needle (Wiki) which can be used to approximate Pi be throwing random needles to a sheet of equidistant lines. Mindblowing observation. ❤️ I ...
C.Klaus's user avatar
  • 11
0 votes
0 answers
36 views

I am trying to perform a Monte-Carlo simulation on quantile regression using R. Currently I am getting stuck simulating the data from the model below. ...
UNI39's user avatar
  • 11
7 votes
1 answer
264 views

I've written a small simulation below to try and understand the differences in performance between fixed and random effects in a model. I am imagining a bunch of eggs incubated together in a clutch (i....
TurtleMan's user avatar
2 votes
1 answer
190 views

I am currently working on a data-generating function in R that creates multilevel data, where I want to control the intraclass correlation coefficients (ICCs) for both the outcome and predictors. ...
Linus's user avatar
  • 399
0 votes
0 answers
29 views

I came across this chart for UK Internal Medicine Training recruitment which raises a couple of issues. The first issue is that there is a visually obvious pattern that even numbers are more likely ...
Henry's user avatar
  • 45.4k
2 votes
0 answers
68 views

I would like to evaluate how well two experimental designs perform with the goal of parameter estimation. I'm generating 1000 simulated datasets for each design and fitting the same model to all of ...
mkt's user avatar
  • 21.2k
1 vote
0 answers
52 views

I want to have a rather basic simulation for a treatment effect. The treatment is binary, the outcome is continuous. In Stata, one could simulate data as follows (I think users using different ...
Tobias Teuchert's user avatar
5 votes
1 answer
88 views

I’m estimating how many patients need to be surveyed annually to detect a 10% change in over a 10-year monitoring period. My response variable is binary (1 = yes, 0 = no). I’ve set the significance ...
vfdgfhtrg11's user avatar
2 votes
1 answer
60 views

My current question is related to a previous post I made on the same topic. I am conducting a meta-analysis and have encountered several publications where, when I attempt to estimate the pre-post ...
marco's user avatar
  • 241
1 vote
0 answers
52 views

I want to simulate some longitudinal clinical trial data in R. Two arms, 1051 patients per arm. I will want to vary the number and timing of visits e.g. Baseline plus 2 visits might look like this 0,0....
Annie's user avatar
  • 11
0 votes
2 answers
142 views

Consider this model as the true data generating process of the population (simple example used for simplicity): $$y_i = 2 + 3X_i + \epsilon_i$$ $$\epsilon_i \sim \mathcal{N}(0, 1)$$ I have a very ...
user avatar
3 votes
0 answers
111 views

I have to perform a power analysis to compute how many participants I need to recruit for an experiment. My problem is that I am not sure if I wrote the script in a right way. I have never tried to ...
Ekaterina Artemeva's user avatar
1 vote
0 answers
59 views

I am modeling protein-ligand binding, where the fractional saturation is described by the Hill-Langmuir equation: $y(L)=\dfrac{L^h}{K^h+L^h}$ I've noticed this function has the same mathematical form ...
Adonis Cedeño's user avatar
2 votes
1 answer
150 views

I design a vigniette experiment about social norms: There is a social-media post about reducing meat consumption which varies the actor (stranger, friend, relatie), the amount of the reduction (no ...
lilla's user avatar
  • 63

15 30 50 per page
1
2 3 4 5
133