Skip to content

Conversation

@willconboy
Copy link
Collaborator

No description provided.

]
]
)
if correlate-issues != 0 [
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make correlate-issue a boolean instead of 0 or 1 and call it correlate-issues?

let curr-issue 0
; Adding in a negative correlationas well (in other words, the issues selected will have a negative correlation with the first issue), this is less relevant from an analytic perspective, but I left it in just in case.
repeat correlate-n-issues [
ifelse correlate-issues > 0 [
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the name "correlate-issues" for the issue correlation. It sounds like a command. Maybe call it issues-correlation

let temp-utilities (list)
let curr-issue 0
; Adding in a negative correlationas well (in other words, the issues selected will have a negative correlation with the first issue), this is less relevant from an analytic perspective, but I left it in just in case.
repeat correlate-n-issues [
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the correlate-n-issues slider on the interface, you can make the maximum equal to number-of-issues so that visually there is an indication that there should never be more issues correlated than there are total issues

; Adding in a negative correlationas well (in other words, the issues selected will have a negative correlation with the first issue), this is less relevant from an analytic perspective, but I left it in just in case.
repeat correlate-n-issues [
ifelse correlate-issues > 0 [
set temp-utilities fput ((correlate-issues * first-issue-utility) + ((1 - correlate-issues) * item curr-issue utilities)) temp-utilities
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get rid of the ifelse block and just do (1 - abs issues-correlation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants