Closed elizabethnecka closed 6 years ago
I cannot directly see what is going wrong. Is it possible to send a reproducible example?
From: elizabethnecka notifications@github.com<mailto:notifications@github.com> Date: Wednesday, 07 Nov 2018, 8:12 PM To: drizopoulos/GLMMadaptive GLMMadaptive@noreply.github.com<mailto:GLMMadaptive@noreply.github.com> Cc: Subscribed subscribed@noreply.github.com<mailto:subscribed@noreply.github.com> Subject: [drizopoulos/GLMMadaptive] Error: $ operator is invalid for atomic vectors (#1)
Thanks for the awesome package! Not sure if this is an issue, but seems like the best place to post about this: When I try to run a model with some variables, I get the error "$ operator is invalid for atomic vector" and the model fails to run, but I don't see where I am using the $ operator on an atomic vector. Here's the code I'm running:
m1<- mixed_model(DV_zeros~VarA, random = ~1|Subject, data = tmp, family = hurdle.lognormal, zi_fixed = ~VarA, zi_random = ~1|Subject, na.action = na.exclude)
but if I substitute VarA for VarB, which is of the same class, or if I replace VarA in the zi_fixed portion for 1, I can run without an error. I can't figure out why I'm getting this error - I was looking through a lot of your source code but can't seem to find it. Do you know why I'm getting this error? Thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/drizopoulos/GLMMadaptive/issues/1, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMn5zw8lodLKR99cv30s8YN7BTAx8Pr-ks5uszCggaJpZM4YTDhb.
Thanks for your help. I’ve attached a reproducible example (RDS file and R script).
Best,
Liz
From: Dimitris Rizopoulos notifications@github.com Reply-To: drizopoulos/GLMMadaptive reply@reply.github.com Date: Wednesday, November 7, 2018 at 4:13 PM To: drizopoulos/GLMMadaptive GLMMadaptive@noreply.github.com Cc: "Necka, Liz (NIH/NCCIH) [F]" liz.necka@nih.gov, Author author@noreply.github.com Subject: Re: [drizopoulos/GLMMadaptive] Error: $ operator is invalid for atomic vectors (#1)
I cannot directly see what is going wrong. Is it possible to send a reproducible example?
From: elizabethnecka notifications@github.com<mailto:notifications@github.com> Date: Wednesday, 07 Nov 2018, 8:12 PM To: drizopoulos/GLMMadaptive GLMMadaptive@noreply.github.com<mailto:GLMMadaptive@noreply.github.com> Cc: Subscribed subscribed@noreply.github.com<mailto:subscribed@noreply.github.com> Subject: [drizopoulos/GLMMadaptive] Error: $ operator is invalid for atomic vectors (#1)
Thanks for the awesome package! Not sure if this is an issue, but seems like the best place to post about this: When I try to run a model with some variables, I get the error "$ operator is invalid for atomic vector" and the model fails to run, but I don't see where I am using the $ operator on an atomic vector. Here's the code I'm running:
m1<- mixed_model(DV_zeros~VarA, random = ~1|Subject, data = tmp, family = hurdle.lognormal, zi_fixed = ~VarA, zi_random = ~1|Subject, na.action = na.exclude)
but if I substitute VarA for VarB, which is of the same class, or if I replace VarA in the zi_fixed portion for 1, I can run without an error. I can't figure out why I'm getting this error - I was looking through a lot of your source code but can't seem to find it. Do you know why I'm getting this error? Thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/drizopoulos/GLMMadaptive/issues/1, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMn5zw8lodLKR99cv30s8YN7BTAx8Pr-ks5uszCggaJpZM4YTDhb.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/drizopoulos/GLMMadaptive/issues/1#issuecomment-436778872, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ao1fGk7v6pKtJ-9mcfS0eoSK5-l6FBKLks5us0yagaJpZM4YTDhb.
I'm afraid the attachments didn't come through - could you try sending them to my e-mail address: d.rizopoulos@erasmusmc.nl
Best, Dimitris
On 11/7/2018 11:59 PM, elizabethnecka wrote:
Thanks for your help. I’ve attached a reproducible example (RDS file and R script).
Best,
Liz
From: Dimitris Rizopoulos notifications@github.com Reply-To: drizopoulos/GLMMadaptive reply@reply.github.com Date: Wednesday, November 7, 2018 at 4:13 PM To: drizopoulos/GLMMadaptive GLMMadaptive@noreply.github.com Cc: "Necka, Liz (NIH/NCCIH) [F]" liz.necka@nih.gov, Author author@noreply.github.com Subject: Re: [drizopoulos/GLMMadaptive] Error: $ operator is invalid for atomic vectors (#1)
I cannot directly see what is going wrong. Is it possible to send a reproducible example?
From: elizabethnecka notifications@github.com<mailto:notifications@github.com> Date: Wednesday, 07 Nov 2018, 8:12 PM To: drizopoulos/GLMMadaptive GLMMadaptive@noreply.github.com<mailto:GLMMadaptive@noreply.github.com> Cc: Subscribed subscribed@noreply.github.com<mailto:subscribed@noreply.github.com> Subject: [drizopoulos/GLMMadaptive] Error: $ operator is invalid for atomic vectors (#1)
Thanks for the awesome package! Not sure if this is an issue, but seems like the best place to post about this: When I try to run a model with some variables, I get the error "$ operator is invalid for atomic vector" and the model fails to run, but I don't see where I am using the $ operator on an atomic vector. Here's the code I'm running:
m1<- mixed_model(DV_zeros~VarA, random = ~1|Subject, data = tmp, family = hurdle.lognormal, zi_fixed = ~VarA, zi_random = ~1|Subject, na.action = na.exclude)
but if I substitute VarA for VarB, which is of the same class, or if I replace VarA in the zi_fixed portion for 1, I can run without an error. I can't figure out why I'm getting this error - I was looking through a lot of your source code but can't seem to find it. Do you know why I'm getting this error? Thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/drizopoulos/GLMMadaptive/issues/1, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMn5zw8lodLKR99cv30s8YN7BTAx8Pr-ks5uszCggaJpZM4YTDhb.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/drizopoulos/GLMMadaptive/issues/1#issuecomment-436778872, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ao1fGk7v6pKtJ-9mcfS0eoSK5-l6FBKLks5us0yagaJpZM4YTDhb.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/drizopoulos/GLMMadaptive/issues/1#issuecomment-436809231, or mute the thread https://github.com/notifications/unsubscribe-auth/AMn5z_8iUJmzyBR9a1ssO7m544HzQd5gks5us2XigaJpZM4YTDhb.
-- Dimitris Rizopoulos Professor of Biostatistics Department of Biostatistics Erasmus University Medical Center
Address: PO Box 2040, 3000 CA Rotterdam, the Netherlands Tel: +31/(0)10/7043478 Fax: +31/(0)10/7043014 Web (personal): http://www.drizopoulos.com/ Web (work): http://www.erasmusmc.nl/biostatistiek/ Blog: http://iprogn.blogspot.nl/
Thanks for the awesome package! Not sure if this is an issue, but seems like the best place to post about this: When I try to run a model with some variables, I get the error "$ operator is invalid for atomic vector" and the model fails to run, but I don't see where I am using the $ operator on an atomic vector. Here's the code I'm running:
m1<- mixed_model(DV_zeros~VarA, random = ~1|Subject, data = tmp, family = hurdle.lognormal, zi_fixed = ~VarA, zi_random = ~1|Subject, na.action = na.exclude)
but if I substitute VarA for VarB, which is of the same class, or if I replace VarA in the zi_fixed portion for 1, I can run without an error. I can't figure out why I'm getting this error - I was looking through a lot of your source code but can't seem to find it. Do you know why I'm getting this error? Thanks!