swihart / gnlrim

Generalized Nonlinear Random Intercept Models in R aka a freestanding `repeated::gnlmix()`
0 stars 0 forks source link

Add pertinent bridging distributions for repeated binary data analysis #5

Open swihart opened 6 years ago

swihart commented 6 years ago

We've come to this.

Keep in mind, the easiest ones will be those that have only parameter, the disp parameter.

For others that have two parameters, we will need to elongate pmix, and be careful of what order pmix is specified, etc. We will make a separate issue for these.

For now, let's do:

The others are stable (which needs alpha, gamma) and cloglog bridge (which needs alpha, delta).

cloglog needs a stable distribution. Might want to include flag that will toggle between libstableR and stabledist. Along with a note for github libstableR on macOS. Or better yet, make it depend on Bob's github repo...

swihart commented 6 years ago

Focus: bridge distribution.

Use the scratch code you have as a guide and keep record here of where you needed to add bridge (remember, switch() doesn't use quotations marks...)

swihart commented 6 years ago

When ready for libstableR:

https://github.com/hadley/devtools/blob/master/vignettes/dependencies.Rmd

swihart commented 6 years ago

see gmail for what you want to post here

in:draft before:2017/11/01 after:2017/8/31

swihart commented 6 years ago

went ahead and did "logit-bridge-var" and "logit-bridge-phi" which will come in handy later. Do the same for normal and cauchy. Super easy, just follow the logit-bridge places to edit above.

swihart commented 6 years ago

Just completed the "normal-var" (default for mixture), "normal-phi", "Cauchy-scl", and "Cauchy-phi" for gnlrim. Have some working examples in scratch_testing.R. I also built in a if{}else{} for the optimx call...if method is the default, that is nlminb and only nlminb then I don't pass the nlm arguments ... I was getting sick of the warnings about ignoring them and an attempt to use optimx's "dowarn" did not work.