fresh-piano-28194
08/14/2024, 11:01 AMorange-terabyte-33302
08/14/2024, 11:01 AMorange-terabyte-33302
08/14/2024, 11:01 AMholdout control
and holdout feature
group get the same value as one another, and that this value is the same as the default/control behavior for your feature test in the general population
[[source](https://docs.growthbook.io/kb/experiments/holdouts#2-add-holdout-experiment-to-all-future-features)].
3. Use Namespaces: You can also use namespaces to create a holdout group. Create a single global namespace and for each experiment rule you create, enable the namespace and select a range like 0 to 0.9
. That means the last 10% of users in that namespace would be excluded from the experiment. Then later for your holdout experiment, you could set the range as 0.9 to 1.0
to run a combined test on the holdout group [[source](https://linen.growthbook.io/t/33879/hi-any-tips-on-how-would-i-go-about-configuring-a-holdback-g)].
4. Use Inline Experiments: You can use inline experiments to create global holdout groups. Here's a code snippet that shows how to do it:
javascript
// The value will be `true` if in the holdout group, otherwise `false`
const holdout = gb.run({
key: "holdout",
variations: [true, false],
// 10% of users in the holdout group
weights: [0.1, 0.9]
});
// Only run your main experiment if the user is NOT in the holdout
if (!holdout.value) {
const res = gb.run({
key: "my-experiment",
variations: ["A", "B"]
})
}
[[source](https://docs.growthbook.io/lib/js#holdout-groups)]orange-terabyte-33302
08/14/2024, 11:01 AM