Skip to main content

Questions tagged [simulation]

A vast area which includes generating results from computer models.

2 votes
1 answer
61 views

I'm running a simulation study with multiple replications. The goal is to analyze the recovery of the random-effects parameters of a statistical model. The random‑effects parameters vary across ...
Watson's user avatar
  • 21
1 vote
0 answers
44 views

I have a question about bootstrapping, in my case, the F statistic of a linear model. I'm helping a colleague of mine with a project that relies on a rather small data set (n = 24). My colleague's ...
Erminio's user avatar
  • 11
2 votes
2 answers
112 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.9k
1 vote
0 answers
66 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
48 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
278 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
234 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
  • 409
0 votes
0 answers
34 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.7k
2 votes
0 answers
75 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.4k
1 vote
0 answers
55 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
95 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
68 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
65 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
147 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
114 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

15 30 50 per page
1
2 3 4 5
133