Re: [R] Dealing with NAs in lm or gmm

2014-10-21 Thread Frederic Ntirenganya
ven body of data. > ~ John Tukey > > Van: jpm miao [mailto:miao...@gmail.com] > Verzonden: dinsdag 21 oktober 2014 11:35 > Aan: ONKELINX, Thierry > CC: r-help > Onderwerp: Re: [R] Dealing with NAs in lm or gmm > > I tries "na.action = na.exclude" but it returns

Re: [R] Dealing with NAs in lm or gmm

2014-10-21 Thread ONKELINX, Thierry
pm miao [mailto:miao...@gmail.com] Verzonden: dinsdag 21 oktober 2014 11:35 Aan: ONKELINX, Thierry CC: r-help Onderwerp: Re: [R] Dealing with NAs in lm or gmm I tries "na.action = na.exclude" but it returns a fitted vector with NAs removed. Is there any way to return the fitted vector wit

Re: [R] Dealing with NAs in lm or gmm

2014-10-21 Thread jpm miao
Tukey > > > -Oorspronkelijk bericht- > Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > Namens jpm miao > Verzonden: dinsdag 21 oktober 2014 10:29 > Aan: r-help > Onderwerp: [R] Dealing with NAs in lm or gmm > > Hi, > >My question is

Re: [R] Dealing with NAs in lm or gmm

2014-10-21 Thread ONKELINX, Thierry
oun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens jpm miao Verzonden: dinsdag 21 oktober 2014 10:29 Aan: r-help Onderwerp: [R] Dealing with NAs in lm or gmm Hi, My question is about NAs in the function "gmm", but I believe that the same issues occur in the case of

[R] Dealing with NAs in lm or gmm

2014-10-21 Thread jpm miao
Hi, My question is about NAs in the function "gmm", but I believe that the same issues occur in the case of "lm". I try to estimate a model by "gmm" function (GMM, generalized method of moments). Each of the variables has 94 rows, but the resulting fitted model has only 89 rows. Then the f

Re: [R] Dealing with NAs in C

2012-02-25 Thread Rui Barradas
Hello, See section 5.10.3 of the R-exts.pdf. There are macros ISNA(x) and ISNAN(x) (only for 'double') and constants NA_INTEGER, NA_REAL, NA_LOGICAL and NA_STRING. > I am currently converting a lot of R code to C in order to make it more > efficient. A lot of the data involves NAs. As > the dat

Re: [R] Dealing with NAs in C

2012-02-25 Thread chris90nz
Thanks Rui, that was exactly what I was looking for! Have successfully implemented it and got rid of yet another loop! Cheers, Chris -- View this message in context: http://r.789695.n4.nabble.com/Dealing-with-NAs-in-C-tp4421377p4421532.html Sent from the R help mailing list archive at Nabble.co

[R] Dealing with NAs in C

2012-02-25 Thread chris90nz
Hi. I am currently converting a lot of R code to C in order to make it more efficient. A lot of the data involves NAs. As the data is mainly integers > 0, I am just setting all NAs to 0 then sending it to the C code then resetting them to NAs again after the C program is done, to be compatible with

Re: [R] Dealing with NAs

2011-12-18 Thread Jeff Newmiller
Read the posting guide. An example is not reproducible without sample data. You may need to remove data records containing NA. It may not even be a true NA, depending how you got your data into R. --- Jeff Newmiller

[R] Dealing with NAs

2011-12-18 Thread Ville Iiskola
Hi I am trying to estimate parameter values with mlogit. I attach a part of my data. My code is x=mlogit.data(y,choice="voittaja",shape="long",id.var="id",alt.var="numero") summary(mlogit(voittaja ~ Ie-1 , data=x, na.action=na.pass)) But i get Error in if (abs(x - oldx) < ftol) { :

Re: [R] dealing with NAs in time series

2008-09-05 Thread stephen sefick
look at zoo na.approx this will interpolate in a couple of ways On Fri, Sep 5, 2008 at 11:28 AM, Alexy Khrabrov <[EMAIL PROTECTED]> wrote: > Certain timeseries I have had outliers, which I removed by assigning NA to > their positions. Now acf() refuses to go to work. What's the right way to > re

[R] dealing with NAs in time series

2008-09-05 Thread Alexy Khrabrov
Certain timeseries I have had outliers, which I removed by assigning NA to their positions. Now acf() refuses to go to work. What's the right way to remove outliers from ts objects, and what are teh standard ways to interpolate NAs in them? Cheers, Alexy _