[R] Missing data in RMark

2015-12-18 Thread Caroline Glidden
I am currently trying to run a Known Fates Model in RMark with individual time varying covariates. However, for animals that died early in the study or were not captured at one capture period I, of course, do not have data for all of their time points. I thought that NAs would not matter when

Re: [R] Missing data in RMark

2015-12-18 Thread Joe Ceradini
Caroline - the phidot forum is an *excellent* spot to post this question. There is an entire RMark subforum. www.phidot.org/forum/index.php Even just searching this forum will probably give you some answers. Also, this book has a whole section on individual covariates and approaches for dealing

[R] missing data in R

2015-08-01 Thread asena ayça özdemir
Hello Mr. FeldesmanI am a master student in biostatistic my thesis about missing values in microarray data, but � can't create any values. � want to create %10, %20,...%90 missing values for all colums in microarray data set . Can you help me any code? thank you for your attention. Asena Ay�a

Re: [R] missing data in R

2015-08-01 Thread Jim Lemon
Hi Asena, If you already have microarray data, you can simply change some of the existing values to NA (datum Not Available). Say you have a toy 10x10 array containing absolute (initial) values: array_values-matrix(sample(0:400,100,TRUE),nrow=10) # create a 10% missing array

[R] Missing Data Imputation for Complex Survey Data

2014-12-12 Thread N F
Dear all, I've got a bit of a challenge on my hands. I've got survey data produced by a government agency for which I want to use the person-weights in my analyses. This is best accomplished by specifying weights in {survey} and then calculating descriptive statistics/models through functions in

Re: [R] Missing Data Imputation for Complex Survey Data

2014-12-12 Thread Anthony Damico
the mitools package is compatible with the survey package.. asdfree.com has complete step-by-step R code examples to work with govt microdata. here are the ones with multiply imputed survey data. :) national health interview survey national survey of children's health consumer expenditure

[R] Missing data problem and ROC curves

2013-07-01 Thread tfj24
Hello all, Trying to get this piece of code to work on my data set. It is from http://www.itc.nl/personal/rossiter. logit.roc - function(model, steps=100) { field.name - attr(attr(terms(formula(model)), factors), dimnames)[[1]][1]

Re: [R] Missing data problem and ROC curves

2013-07-01 Thread David Winsemius
On Jul 1, 2013, at 10:57 AM, tfj24 wrote: Hello all, Trying to get this piece of code to work on my data set. It is from http://www.itc.nl/personal/rossiter. logit.roc - function(model, steps=100) { field.name - attr(attr(terms(formula(model)), factors),

[R] Missing data

2013-04-25 Thread Roslina Zakaria
Dear r-users, I would like to investigate about how to fill in missing data.  I started with a complete data and try to introduce missing data into the data series.  Then I would use some method to fill in the missing data and then compare with the original data how good it is.  My question

Re: [R] Missing data

2013-04-25 Thread Rainer Schuermann
I read your data into a dataframe x - read.table( clipboard ) and renamed the only column colnames( x )[1] - orig With a loop, I created a 2nd column miss where in every 10th row the observation is set to NA: for( i in 1 : length( x$orig ) ) { if( as.integer( rownames( x )[ i ] ) %% 10

Re: [R] Missing data

2013-04-25 Thread Rui Barradas
Hello, Something like this? x - scan(text = 125 130.3 327.2 252.2 33.8 6.1 5.1 0.5 0.5 0 2.3 0 0 0 0 0 0 0 0 0 0.8 5.1 0 0.3 0 0 0 0 0 0 45.7 43.4 0 0 0 0 0 ) putMissing - function(x, by){ idx - by*seq_along(x) idx - idx[which(idx = length(x))] x[idx] - NA x }

Re: [R] Missing data

2013-04-25 Thread David Carlson
-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Rainer Schuermann Sent: Thursday, April 25, 2013 5:45 AM To: r-help@r-project.org Cc: Roslina Zakaria Subject: Re: [R] Missing data I read your data into a dataframe x

Re: [R] Missing data (Na) and chi-square tests

2012-10-08 Thread Rerda
Dear Rui and David Thank you very much for taking your time to look at my problem. However, I still cannot seem to figure it out. I think that you David are corect in your assumption of how my data is structured. The data in the two columns that I need to cross-table is either 1 or 0. I made a

Re: [R] Missing data (Na) and chi-square tests

2012-10-08 Thread David Winsemius
On Oct 8, 2012, at 9:06 AM, Rerda wrote: Dear Rui and David Thank you very much for taking your time to look at my problem. However, I still cannot seem to figure it out. I think that you David are corect in your assumption of how my data is structured. The data in the two columns that I

Re: [R] Missing data (Na) and chi-square tests

2012-10-08 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of David Winsemius Sent: Monday, October 08, 2012 4:37 PM To: Rerda Cc: r-help@r-project.org Subject: Re: [R] Missing data (Na) and chi-square tests On Oct 8, 2012, at 9:06 AM

Re: [R] Missing data (Na) and chi-square tests

2012-10-08 Thread Rui Barradas
Hello, Also, since the values are always 0/1, this should also do it. with( dat, table( Rash, Hypotension ) ) Hope this helps, Rui Barradas Em 09-10-2012 00:36, David Winsemius escreveu: On Oct 8, 2012, at 9:06 AM, Rerda wrote: Dear Rui and David Thank you very much for taking your time

[R] Missing data (Na) and chi-square tests

2012-10-05 Thread Rerda
Dear everyone I am a bit of a computer imbecile and are having problems with R. I am using R in my research project to do chi-square tests on data imported from excel . However I have som missing data in one of my variables (columns) and I need R to exclude these and make chi-square test on the

Re: [R] Missing data (Na) and chi-square tests

2012-10-05 Thread Rui Barradas
Hello, There are two ways, 1. ?sum # see argument na.rm sum(whatever, na.rm = TRUE) 2. ?table # produces the 2x2 contingency table, if there are only 2 values Also, you should provide us with a data example, especially since your code clearly doesn't work. Use ?dput like this dput(

Re: [R] Missing data (Na) and chi-square tests

2012-10-05 Thread David Winsemius
On Oct 5, 2012, at 6:26 AM, Rerda wrote: Dear everyone I am a bit of a computer imbecile and are having problems with R. I am using R in my research project to do chi-square tests on data imported from excel . However I have som missing data in one of my variables (columns) and I need R

Re: [R] Missing Data in Stepwise selection of Logistic regression

2012-02-24 Thread Michael Dewey
At 07:02 24/02/2012, Kawthar Alajmi wrote: Hi all, I am running Stepwise logistic regression and i have : 1- Multiple covatiates included in each model (No missing data) So there is no missing data on any covariate? 2- Genotype data (SNPs) about 500,000 . I partitioned the data to multiple

[R] Missing Data in Stepwise selection of Logistic regression

2012-02-23 Thread Kawthar Alajmi
Hi all, I am running Stepwise logistic regression and i have : 1- Multiple covatiates included in each model (No missing data) 2- Genotype data (SNPs) about 500,000 . I partitioned the data to multiple files (there are missing data) I run the step by including all the covariates and one SNP at

Re: [R] Missing data?

2011-11-27 Thread Kevin Burton
I admit it isnt reality but I was hoping through judicious use of these functions I could approximate reality. For example in the years where there are more than 53 weeks in a year I would be happy if there were a way to recognize this and drop the last week of data. If there were less than 53

Re: [R] Missing data?

2011-11-27 Thread Kevin Burton
I was just trying to be complete. Why is the frequency argument and attribute available? -Original Message- From: R. Michael Weylandt [mailto:michael.weyla...@gmail.com] Sent: Saturday, November 26, 2011 2:40 PM To: Kevin Burton Cc: r-help@r-project.org Subject: Re: [R] Missing data

Re: [R] Missing data?

2011-11-27 Thread R. Michael Weylandt
: Saturday, November 26, 2011 2:40 PM To: Kevin Burton Cc: r-help@r-project.org Subject: Re: [R] Missing data? Why do you need to use a frequency attribute for these data? The point of the zoo/xts line of time series implementations is that the time stamps are carried through for each

Re: [R] Missing data?

2011-11-27 Thread Gabor Grothendieck
On Sun, Nov 27, 2011 at 4:08 PM, Kevin Burton rkevinbur...@charter.net wrote: I admit it isnt reality but I was hoping through judicious use of these functions I could approximate reality. For example in the years where there are more than 53 weeks in a year I would be happy if there were a

Re: [R] Missing data?

2011-11-27 Thread Kevin Burton
...@gmail.com] Sent: Sunday, November 27, 2011 4:24 PM To: Kevin Burton Cc: r-help@r-project.org Subject: Re: [R] Missing data? On Sun, Nov 27, 2011 at 4:08 PM, Kevin Burton rkevinbur...@charter.net wrote: I admit it isnt reality but I was hoping through judicious use of these functions I could

Re: [R] Missing data?

2011-11-27 Thread Gabor Grothendieck
On Sun, Nov 27, 2011 at 8:10 PM, Kevin Burton rkevinbur...@charter.net wrote: This has been very helpful. Thank you. At the risk of further confirming my ignorance and taxing your patience I would like to add another question. How would I modify this code so that each week starts with the

Re: [R] Missing data?

2011-11-26 Thread R. Michael Weylandt
, name = name, ...) :  missing values removed from data -Original Message- From: R. Michael Weylandt michael.weyla...@gmail.com [mailto:michael.weyla...@gmail.com] Sent: Tuesday, November 22, 2011 3:10 PM To: Kevin Burton Cc: r-help@r-project.org Subject: Re: [R] Missing data

Re: [R] Missing data?

2011-11-26 Thread Gabor Grothendieck
On Tue, Nov 22, 2011 at 6:50 PM, Kevin Burton rkevinbur...@charter.net wrote: Void of any other suggestions this approach makes sense but for my case I think I need to use zoo objects rather than xts. If I sequence the data generally I don't know if there will be 365 days in the year or 366. So

[R] Missing data?

2011-11-22 Thread Kevin Burton
I was wondering what the best approach is for missing data in a time series. I give an example using xts but I would like to know what seems to be the best method. Say I have library(xts) xts.ts - xts(1:4,as.Date(c(1970-01-01, 1970-1-3, 1980-10-10, 2007-8-19)), frequency=52) I would like

Re: [R] Missing data?

2011-11-22 Thread R. Michael Weylandt michael.weyla...@gmail.com
Couldn't you use seq.Date() to set up the time index and then just fill as appropriate? Alternatively, to.weekly if you are starting with a daily series. Michael On Nov 22, 2011, at 4:00 PM, Kevin Burton rkevinbur...@charter.net wrote: I was wondering what the best approach is for missing

Re: [R] Missing data?

2011-11-22 Thread Kevin Burton
. Michael Weylandt michael.weyla...@gmail.com [mailto:michael.weyla...@gmail.com] Sent: Tuesday, November 22, 2011 3:10 PM To: Kevin Burton Cc: r-help@r-project.org Subject: Re: [R] Missing data? Couldn't you use seq.Date() to set up the time index and then just fill as appropriate? Alternatively

Re: [R] Missing data?

2011-11-22 Thread Kevin Burton
is a Sunday and the 10th is a Monday (the beginning of the week). -Original Message- From: R. Michael Weylandt michael.weyla...@gmail.com [mailto:michael.weyla...@gmail.com] Sent: Tuesday, November 22, 2011 3:10 PM To: Kevin Burton Cc: r-help@r-project.org Subject: Re: [R] Missing data

Re: [R] Missing data?

2011-11-22 Thread Kevin Burton
, weeks, name = name, ...) : missing values removed from data -Original Message- From: R. Michael Weylandt michael.weyla...@gmail.com [mailto:michael.weyla...@gmail.com] Sent: Tuesday, November 22, 2011 3:10 PM To: Kevin Burton Cc: r-help@r-project.org Subject: Re: [R] Missing data

[R] Missing data by design

2009-11-20 Thread Timothy Ballard
Hi readers, I'm new to the R package and have a question about handling missing data in R. I have a dataset from a longitudinal study where we are are testing a series of models, some in which lagged variables are used to predict an outcome and others in which concurrent variables are used. Due

[R] Missing data and LME models and diagnostic plots

2009-10-21 Thread Peter Flom
Hello Running R2.9.2 on Windows XP I am puzzled by the performance of LME in situations where there are missing data. As I understand it, one of the strengths of this sort of model is how well it deals with missing data, yet lme requires nonmissing data. Thus, m1.mod1 - lme(fixed =

Re: [R] Missing data and LME models and diagnostic plots

2009-10-21 Thread Mark Difford
Peter Flom wrote: I am puzzled by the performance of LME in situations where there are missing data. As I understand it, one of the strengths of this sort of model is how well it deals with missing data, yet lme requires nonmissing data. You are confusing missing data with an

Re: [R] Missing data and LME models and diagnostic plots

2009-10-21 Thread Peter Flom
I wrote I am puzzled by the performance of LME in situations where there are missing data. As I understand it, one of the strengths of this sort of model is how well it deals with missing data, yet lme requires nonmissing data. Mark Difford replied You are confusing missing data with

Re: [R] Missing data and LME models and diagnostic plots

2009-10-21 Thread Kingsford Jones
Mixed models based on likelihood methods can often handle missing observations within subjects, but they not do well with missing individual elements in the design matrices (think unit nonresponse vs item nonresponse in the survey world). Continuing with the example I recently sent to you

Re: [R] Missing data and LME models and diagnostic plots

2009-10-21 Thread Mark Difford
Hi Peter, See e.g. Hedeker and Gibbons, Longitudinal Data Analysis, which repeatedly stresses that mixed models provide good estimates if the data are missing at random. This may be true. However, one of the real strengths of LME is that it handles unbalanced designs, which is a different

[R] missing data

2008-06-09 Thread wilquin Minaya
hi I would like to know how I can complete those missing data from these programs: program number one DATOS2 - sin(seq(1,20,0.1)) DATOS2[103] - NA DATOS2[65] - NA DATOS2[134] - NA this is the other one data(pressure) DATOS3 - pressure DATOS3[4,1] - NA DATOS3[14,1:2] -

[R] Missing Data and applying

2008-06-09 Thread Michael Pearmain
Hi All, Newbie question that i'm sure is easy, but i can't seem to apply properly I read in a datafram from a CSV file and i want to tell R that from coloum n_0 to n_32 the value -1 is missing data i was looking at the is.na(xx) - c(..,...,) idea but i can't seem to apply it properly, can anyone

Re: [R] Missing Data and applying

2008-06-09 Thread jim holtman
This might help the first question: da - (-1):1 x - data.frame(a1=sample(da,10,TRUE), a2=sample(da,10,TRUE), a3=sample(da,10,TRUE)) x a1 a2 a3 1 0 1 0 2 0 0 1 3 0 1 0 4 -1 0 -1 5 1 0 -1 6 1 1 -1 7 1 -1 -1 8 -1 0 0 9 1 1 0 10 0 1 0 is.na(x[1:3]) - x[1:3] ==

[R] missing data imputation - simulation

2008-06-04 Thread Birgitle
My dataset contains missing data and I would like to do something like an EM algorithm or a Markov Chain Monte Carlo approach to get rid of the missing data. Is there a function for imputation or simulation of missing data apart from those in the randomForest library? Thanks in advance Birgit

Re: [R] missing data imputation - simulation

2008-06-04 Thread Chuck Cleland
On 6/4/2008 5:32 AM, Birgitle wrote: My dataset contains missing data and I would like to do something like an EM algorithm or a Markov Chain Monte Carlo approach to get rid of the missing data. Is there a function for imputation or simulation of missing data apart from those in the

Re: [R] missing data imputation - simulation

2008-06-04 Thread Ulrike Grömping
Birgit, not knowing your data, I would recommend R-package mice or function aregImpute from R-package Hmisc as good multi-purpose tools. Regards, Ulrike -- View this message in context: http://www.nabble.com/missing-data-imputation---simulation-tp17642736p17643601.html Sent from the R help

Re: [R] missing data imputation - simulation

2008-06-04 Thread Birgitle
Many thenks to both of you: Will have a look. Birgit Chuck Cleland wrote: On 6/4/2008 5:32 AM, Birgitle wrote: My dataset contains missing data and I would like to do something like an EM algorithm or a Markov Chain Monte Carlo approach to get rid of the missing data. Is there a

[R] missing data

2007-11-01 Thread genomenet
Hi There, Will somebody know if there is a function in R which can compute the proximity from an incomplete data matrix? Or any other software which can do this? Thank you. Van __ R-help@r-project.org mailing list

Re: [R] Missing data

2007-09-11 Thread Bert Gunter
11, 2007 2:36 PM To: [EMAIL PROTECTED] Subject: [R] Missing data Hi all, I'm looking for a contributed package that can provide a detailed account of missing data patterns and perhaps also provide imputation procedures, such as mean imputation or hot deck imputation and the like

Re: [R] Missing data

2007-09-11 Thread David Kaplan
To: [EMAIL PROTECTED] Subject: [R] Missing data Hi all, I'm looking for a contributed package that can provide a detailed account of missing data patterns and perhaps also provide imputation procedures, such as mean imputation or hot deck imputation and the like. Is there anything out