Hello,
This PR should fix a few problems I ran into when working with polyester. The first is that when meanmodel is set it draws from a normal distribution before the random seed is set. This made polyester non-deterministic, even when the seed was set.
The second is that the logic for meanmodel only checked whether meanmodel was passed as an extra, not whether what was passed to meanmodel was TRUE. This meant that even if meanmodel = FALSE was passed, it was running as if meanmodel = TRUE was passed.
Hello, This PR should fix a few problems I ran into when working with polyester. The first is that when
meanmodel
is set it draws from a normal distribution before the random seed is set. This made polyester non-deterministic, even when the seed was set. The second is that the logic formeanmodel
only checked whethermeanmodel
was passed as an extra, not whether what was passed tomeanmodel
wasTRUE
. This meant that even ifmeanmodel = FALSE
was passed, it was running as ifmeanmodel = TRUE
was passed.