Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sampling strategies in dfe
sampling strategies in dfe
Commits
1c2d6afc
Commit
1c2d6afc
authored
Aug 03, 2021
by
linushof
Browse files
Round results to 2 digits
parent
f0cd1c43
Changes
1
Show whitespace changes
Inline
Side-by-side
R/fun_generate_gambles.R
View file @
1c2d6afc
...
...
@@ -37,7 +37,7 @@ generate_gambles <- function(n, safe = TRUE, lower, upper) {
# add gamble features that are determined by the random samples from above
# compute and compare expected values
mutate
(
a_p2
=
1
-
a_p1
,
mutate
(
a_p2
=
round
(
1
-
a_p1
,
2
),
b_o2
=
0
,
b_p1
=
1
,
b_p2
=
0
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment