Displaying 20 results from an estimated 10000 matches similar to: "Missing values in the nlme package"
2001 Nov 06
2
Inverse Matrices
I have a problem with finding the inverse of a matrix. I have a square
9x9 matrix, A, and when I do solve(A) to find the inverse I get the
following error message:
Error in solve.default(A) : singular matrix `a' in solve
Has anybody got any ideas as to why this is happening?
Thanks
Laura Gross
_______________________________________________________________________
Never pay another
2013 Apr 15
2
regression with paired left-censored data
HI
I am trying to analyse data which is left-censored (i.e. has values below the detection limit). I have been using the NADA package of R to derive summary statistics and do some regression. I am now trying to carry out regression on paired data where both my X and Y have left-censored data within them.
I have tried various commands in R:
rega = cenreg(Cen(conc, cens_ind) ~ Gp_ident))?
with
2011 Aug 01
1
Impact of multiple imputation on correlations
Dear all,
I have been attempting to use multiple imputation (MI) to handle missing data in my study. I use the mice package in R for this. The deeper I get into this process, the more I realize I first need to understand some basic concepts which I hope you can help me with.
For example, let us consider two arbitrary variables in my study that have the following missingness pattern:
Variable 1
2008 Nov 04
2
ordered logistic regression of survey data with missing variables
Hello:
I am working with a stratified survey dataset with sampling weights
and I want to use multiple imputation to help with missingness.
1. Is there a way to run an ordered logistic regression using both a
multiply imputed dataset (i.e. from mice) and adjust for the survey
characteristics using the weight variable? The Zelig package is able
to do binary logistic regressions for survey
2002 Jul 20
1
Problems installing 'lattice' package
Dear List
I have installed the 'lattice' package by using 'install.package("lattice")
It appears to have created a lattice folder in my R library as I would expect.
I have tried to call the package by library(lattice) but I am getting the following error message:
Error in parse(file, n, text, prompt) : syntax error on line 2018
Could anybody tell me why this is
2010 Apr 04
2
logistic regression in an incomplete dataset
Dear all,
I want to do a logistic regression.
So far I've only found out how, in a dataset of complete cases.
I'd like to do logistic regression via max likelihood, using all the study
cases (complete and incomplete). Can you help?
I'm using glm() with family=binomial(logit).
If any covariate in a study case is missing then the study case is
dropped, i.e. it is doing a complete case
2002 Jul 29
1
creating an index vector within a 'for' loop
Dear list
I have what is probably a very simple question that I can't seem to solve. I basically want to create a vector at the end of a 'for' loop that will store the output for each person and which I can recall after the loop has run. This will require some sort of indexing.
X and Y are matrices defined earlier for each person (within the for loop but I'm not writing it here
2011 Sep 15
1
Where to put tryCatch or similar in a very big for loop
Dear all,
I am running a simulation study to test variable imputation methods for Cox models using R 2.9.0 and Windows XP. The code I have written (which is rather long) works (if I set nsim = 9) with the following starting values.
>bootrs(nsim=9,lendevdat=1500,lenvaldat=855,ac1=-0.19122,bc1=-0.18355,cc1=-0.51982,cc2=-0.49628,eprop1=0.98,eprop2=0.28,lda=0.003)
I need to run the code 1400
2003 Dec 22
2
missing data and completed missing data
Hi,
This is not exactly an R request, but does anyone know of a good dataset
that contains missing and missing data that have been completed later
(like from persistent in-person interview attempts)? (want it for some
Bayesian regression analysis)
Thanks!!
-Raphael
[[alternative HTML version deleted]]
2005 Jan 06
2
patterns of missing data: determining monotonicity
Here is a problem that perhaps someone out here has an idea about. It
vaguely reminds me of something
I've seen before, but can't place. Can anyone help?
For multiple imputation, there are simpler methods available if the
patterns of missing data are 'monotone' ---
if Vj is missing then all variables Vk, k>j are also missing, vs. more
complex methods required when the
2003 Jan 24
3
Multinomial Logit Models
Hi
I am wanting to fit some multinomial logit models (multinom command in
package nnet)
Is it possible to do any model checking techniques on these models
e.g. residual, leverage etc. I cannot seem to find any commands that
will allow me to do this.
Many thanks
----------------------
L.E.Gross
L.E.Gross at maths.hull.ac.uk
2012 Nov 01
2
SEM validation: Cross-Validation vs. Bootstrapping
Hello All,
Recently, I was asked to help out with an SEM cross-validation analysis. Initially, the project was based on "sample-splitting" where half of cases were randomly assigned to a training sample and half to a testing sample. Attempts to replicate a model developed in the training sample using the testing sample were not entirely successful. A number of parameter estimates were
2009 Apr 22
1
Multiple imputations : wicked dataset ? Wicked computers ? Am I cursed ? (or stupid ?)
Dear list,
I'd like to use multiple imputations to try and save a somewhat badly
mangled dataset (lousy data collection, worse than lousy monitoring, you
know that drill... especially when I am consulted for the first time
about one year *after* data collection).
My dataset has 231 observations of 53 variables, of which only a very
few has no missing data. Most variables have 5-10% of
2011 Oct 18
1
Repeat a loop until...
Dear all,
I know there have been various questions posted over the years about loops but I'm afraid that I'm still stuck. I am using Windows XP and R 2.9.2.
I am generating some data using the multivariate normal distribution (within the 'mnormt' package). [The numerical values of sanad and covmat are not important.]
> datamat <-
2003 Jul 16
4
how to handle missing values
This group impresses me, so far I have been helped with all my questions
within 24 hours. Thanks.
Therefore another one.
I am used to programs (such as STATA) where observations with missing values
that are included in a model are simply ignored in the analysis. So far I
have not been able to figure out how to deal with missing values in R and
have solved the problem by deleting observations
2005 Jul 08
2
missing data imputation
Dear R-help,
I am trying to impute missing data for the first time using R. The norm
package seems to work for me, but the missing values that it returns seem
odd at times -- for example it returns negative values for a variable that
should only be positive. Does this matter in data analysis, and/or is
there a way to limit the imputed values to be within the minimum and
maximum of the actual
2008 Jun 30
3
Is there a good package for multiple imputation of missing values in R?
I'm looking for a package that has a start-of-the-art method of
imputation of missing values in a data frame with both continuous and
factor columns.
I've found transcan() in 'Hmisc', which appears to be possibly suited
to my needs, but I haven't been able to figure out how to get a new
data frame with the imputed values replaced (I don't have Herrell's book).
Any
2010 Aug 10
1
Multiple imputation, especially in rms/Hmisc packages
Hello, I have a general question about combining imputations as well as a
question specific to the rms and Hmisc packages.
The situation is multiple regression on a data set where multiple
imputation has been used to give M imputed data sets. I know how to get
the combined estimate of the covariance matrix of the estimated
coefficients (average the M covariance matrices from the individual
2005 Feb 28
1
Using mutiply imputed data in NLME
Dear All,
I am doing a growth modeling using NLME. I have three levels in my
data: observation, individual, household. About half of my total
sample have missing values in my household-level covariates. Under
this situation, the best way to go is probably to multiply impute the
data (for, say, 5 times), estimate the same model separately on each
model using LME function, and merge the results. My
2011 Feb 07
1
multiple imputation manually
Hi,
I want to impute the missing values in my data set multiple times, and then
combine the results (like multiple imputation, but manually) to get a mean
of the parameter(s) from the multiple imputations. Does anyone know how to
do this?
I have the following script:
y1 <- rnorm(20,0,3)
y2 <- rnorm(20,3,3)
y3 <- rnorm(20,3,3)
y4 <- rnorm(20,6,3)
y <- c(y1,y2,y3,y4)
x1 <-