Experimental design is the methodological study of how experiments should be designed to maximize the scientist's ability to make inferences about the causal effect of an independent variable on a dependent variable.
Questions tagged [experimental-design]
138 questions
2
votes
0 answers
Create factor in a data frame that minimizes correlation with other variables in R?
I am trying to create a factor variable with 3 levels and add it to an existing data frame with the condition that this new factor is as uncorrelated as possible with the the variables in the data frame.
Is there an R function that can help me…

RTrain3k
- 845
- 1
- 13
- 27
2
votes
1 answer
split block in R lmer
A factorial combination of 16 treatments (4*2*2) was replicated three times and laid out in a strip-split block. Treatments consisted of eight site preparations (4*2) applied as whole plot treatments and two levels of weeding(weeding/no-weeding)…

Jeanette Pauw
- 29
- 1
2
votes
0 answers
Two fixed factors nested and crossed factors in R
I want to design a nested model. It is kind of difficult to explain so I drew a picture.
All of the factors are fixed and there are 2 levels (0, 1) in each of them.
A and B have nested factors C and D. E and F are independent with these guys and…

Clarishnish
- 21
- 2
2
votes
1 answer
Experimental design in R: balanced incomplete block design
I would like to generate a matrix to plan an experiment.
I have 6 individuals and 6 treatments delivered in 6 days.
I can use 1 individual per week (6 weeks of 6 days in total = 36 days of testings with 6 treatments a day).
Every day, I will test…

user3406207
- 315
- 1
- 3
- 18
1
vote
0 answers
Working with the Passthrough Composite Layer on VR Headsets
Before I begin, I am fully aware of the risks involved with altering the passthrough camera feed for the end user. This is for a specific use-case and will not be a publicly available. I'm attempting to reduce the framerate of the environment for…

Dave Seidman
- 41
- 1
- 6
1
vote
0 answers
Generating a foil from Self-Avoiding Walk in 5x5 matrix
I need to create an experiment that creates a foil, or a similar stimulus that has a constant change. In my case, I need to take the output from a Self-Avoiding Walk Algorithm 5x5 matrix and move two cells of this path in a way that does not "break"…

Lucas Rodrigues
- 1,234
- 2
- 11
- 22
1
vote
0 answers
How to find the optimal path and values from a subset of multi-dimensional variables?
I am working on designing an experiment, where a system can receive 5 inputs [x1, x2, x3, x4, x5] and record target data associated with this "state". Given a new input state, the system will then transition from the old to the new state with a…

tishafok
- 13
- 4
1
vote
1 answer
I dont understand how to optimize Play Store Keywords AND screenshots at the same time
I dont understand how to run effective ASO because..
If I am running screenshot experiments I should not be changing text but I need to be changing text to optimize app keywords for App/Play Store search. So I can effectively only do only one or the…

NukeouT
- 409
- 1
- 9
- 20
1
vote
0 answers
How do I best (counter)balance an experiment with 200x4 permutations?
I am trying to create a (roughly) counterbalanced experimental design for a few hundred images that are run through various distortions. Let's say 4 types of distortions: a,b,c and d.
I want to test a group of observers so that they see each image…

Simon Hviid Del Pin
- 103
- 1
- 9
1
vote
1 answer
Splitsample in Stata 16: How to create samples based on varying proportions saved in a variable?
Datastructure: I use panel data in which an observation represents a certain individual in a given year (2015-2021). Only observations are included of individuals who are between the 15 and 25 years old. There are 2857 observations of 1373…

J.G.A. Wijlhuizen
- 21
- 3
1
vote
1 answer
Using R to Randomly Assign Treatment and Control Groups by single IDs
I would like to use R for solving a problem of experimental design in which I will randomly assign my experimental units to treatment or control groups.
The problem is the following:
Let's say that I have 120 plants with unique IDs (subsetted in 4…

Edoardo Scali
- 47
- 4
1
vote
1 answer
Fill a dataframe with Carthesian product of variably shaped input lists
I want to create a script that fills a dataframe with values that are the Carthesian product of parameters I want to vary in a series of experiments.
My first thought was to use the product function of itertools, however it seems to require a fixed…

skleijn
- 95
- 10
1
vote
1 answer
Anylogic: How to add "output" value to presentation of optimization experiment?
In my Anylogic model I have an output that gets a value after simulation end (see picture 2). I want to add this output value to the presentation of an optimization experiment (see picture 1), so that it shows the output value of the Best iteration.…

Ella
- 125
- 6
1
vote
1 answer
How to produce a a randomized number sequence within seven block without boundary repeat using R?
There are 9 treatments and we want to have 7 blocks. In each block, the treatment should be repeated once.
The 9 treatments are marked as follows:
-Treatment 1 (1-7)
-Treatment 2 (8-14)
-Treatment 3 (15-21)
-Treatment 4 (22-28)
-Treatment 5…

MarioS
- 15
- 5
1
vote
1 answer
How do you run a complier average causal effect (CACE) analysis in R?
Context
When conducting a Randomized-Controlled Trial (RCT), some participants are randomly assigned to a treatment condition, and others to a control group. However, not everyone assigned to the treatment might follow the treatment protocol (called…

rempsyc
- 785
- 5
- 24