Re: [R] Vector errors and missing values

From: Petr PIKAL <petr.pikal_at_precheza.cz>
Date: Fri, 02 Mar 2012 10:56:42 +0100

Hi

>
> Hi,
>
> I am trying to run two Non-Gaussian regressions: logistic and probit. I
am
> receiving two different errors when I try to run these regressions and I
am
> not sure what they mean or how to fix my syntax.
>
> Here is the logistic regression error:
>
> Error in family$linkfun(mustart) :
> Argument mu must be a nonempty numeric vector
>
> Here is the probit regression error:
>
> Error in pmax(eta, -thresh) : cannot mix 0-length vectors with others

Without any code and structure of your data you probably does not get much help. See the bottom of any email.

PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Probably somehow your data are not as you expect. What

str(yourdata) tells you? Is it in compliance with function you use?

Regards
Petr

>
> The dataset that I am using has some missing data. R puts NA values in
place
> of the missing values. I am not sure if this is what is causing my
vector
> problems or not. I have tried to use the 'data=na.omit(DataMiss)' in my
glm
> as well as the command: 'na.action=na.exclude', but I am not sure if I
am
> using the correct syntax because it is not working.
>
> Any help would be most appreciated.
>
> --
> View this message in context:
http://r.789695.n4.nabble.com/Vector-errors-
> and-missing-values-tp4437306p4437306.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 02 Mar 2012 - 10:00:48 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 02 Mar 2012 - 13:50:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive