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

Factors containing ":" not supported #6

Closed
christinabergmann opened this issue Feb 14, 2020 · 2 comments
Closed

Factors containing ":" not supported #6

christinabergmann opened this issue Feb 14, 2020 · 2 comments

Comments

@christinabergmann
Copy link

christinabergmann commented Feb 14, 2020

The following dataset contains ":" within a column of strings subid_unique and thus cannot be passed to R

using CSV, RCall
mb1 = CSV.read(
  download("https://raw.githubusercontent.com/manybabies/mb1-analysis-public/fa7e77c026a4dc0b0bb7e78d3bf3771c9bc2f7cb/processed_data/03_data_trial_main.csv"),
     missingstrings=["NA","N/A"],
     truestrings=["TRUE"],
     falsestrings=["FALSE"])

@rput mb1

using MixedModels, JellyMe4
m1form = @formula log(looking_time) ~ trial_type * method +
                    trial_type * trial_num +
                    age_mo * trial_num +
                    trial_type * age_mo * nae +
                    (1 | subid_unique) +
                    (1 | lab);
m1 = fit(MixedModel, m1form, mb1, REML=true)
m1_lmm = Tuple([m1, mb1]);

@rput m1_lmm
`ERROR: RParseError: Error: unexpected ':'`
@palday
Copy link
Owner

palday commented Feb 14, 2020

It's the log transform that's going wrong.

@palday
Copy link
Owner

palday commented Feb 14, 2020

Latest push should catch this mistake for some common transforms.

@palday palday closed this as completed Feb 14, 2020
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