Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

term naming #8

Open
bbolker opened this issue Dec 31, 2017 · 14 comments
Open

term naming #8

bbolker opened this issue Dec 31, 2017 · 14 comments

Comments

@bbolker
Copy link
Owner

bbolker commented Dec 31, 2017

It would be good to come up with a unified scheme for naming parameters (e.g. the random-effects correlation between A and B with grouping variable C) and finding streamlined ways to translate from, e.g. the MCMCglmm or brms naming convention to the standard

@bbolker
Copy link
Owner Author

bbolker commented Apr 22, 2019

Current naming scheme is

((sd|var)|(cor|cov))__<term1>(.<term2>)?

In one place the separator between the type and terms components (__) is coded as options(broom.mixed.sep1). Could make the second separator (currently a dot) into options(broom.mixed.sep2) ...

@mattfidler
Copy link

I suppose you should probably put the options(broom.mixed.sep2) in what you have. I will use both with the defaults __ and . respectively for now.

I personally think that SD(parameter) is more readable, but it may cause other issues I am not thinking through right now.

mattfidler added a commit to nlmixrdevelopment/nlmixr that referenced this issue Apr 22, 2019
@bbolker
Copy link
Owner Author

bbolker commented Apr 22, 2019

broom.mixed.sep2 is done.

One of the desiderata for separators is that it should be relatively easy for people to use tidyr::separate to split columns if desired -- surrounding by parentheses makes that harder.

@mattfidler
Copy link

Ok. Thats fine with me.

@mattfidler
Copy link

Dots are used in variable names, could that be problematic for the default . separator

@mattfidler
Copy link

mattfidler commented Apr 22, 2019

For example, I have seen many people use eta.v and eta.cl then the separator would be:

cor__eta.v.eta.cl

which would mean it is difficult to apply a tidyr::separate for the columns. Of course that is also true for _

@mattfidler
Copy link

Perhaps change . to , which is syntactically invalid for a variable name?

mattfidler added a commit to nlmixrdevelopment/nlmixr that referenced this issue Apr 22, 2019
@bbolker
Copy link
Owner Author

bbolker commented Apr 22, 2019

Hmmm. Could use two dots (which are much less usual within names ...)

@mattfidler
Copy link

That would work too.

@mattfidler
Copy link

Just let me know what the default is and I will update my default.

@bbolker
Copy link
Owner Author

bbolker commented Apr 22, 2019

I'm going to leave the default as . for now; changing to .., while an improvement, will be a breaking change and I should think about the right way to get there ...

@mattfidler
Copy link

Ok. Let me know if/when you decide to change this.

I think it probably should be changed at some time, though. Preferably earlier than later since broom is still relatively new and it won't break as many things right now.

@bbolker
Copy link
Owner Author

bbolker commented Apr 22, 2019

that's always the tough decision, isn't it?

@mattfidler
Copy link

Indeed...

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

No branches or pull requests

2 participants