lizzieinvancouver / arees

0 stars 0 forks source link

Editing plots in post #2

Open ngoj1 opened 1 year ago

ngoj1 commented 1 year ago

17.9.2023

After messing around with rnorm a bit, I realized that modifying xlim() also seems to restrict rnorm to fit the range you specify. I haven't found a way to "freeze" the values you get in one iteration of rnorm as flat values, but with a large enough n and the white background from theme_clean() or theme_few() I may simply just erase the parts of the plots that look janky and fix them up in Illustrator or Krita.

Still figuring out how to simulate logistic curves; I tried using rnorm to generate random values then do cumulative frequency through stat_ecdf(), but the only change you get when modifying mean and sd is in the shape of the curve and not the final result.

image

lizzieinvancouver commented 1 year ago

Still figuring out how to simulate logistic curves ...

@ngoj1 I might be able to help with this one! You can simulate data for a logistic regression and it should work ... ROS -- our Bayesian reading book might have some code, I am not sure, but on quick glance this looks helpful:

https://library.virginia.edu/data/articles/simulating-a-logistic-regression-model