similar to: Amelia. Imputation of time-series data

Displaying 20 results from an estimated 2000 matches similar to: "Amelia. Imputation of time-series data"

2012 Oct 30
1
Amelia imputation - column grouping
Hi everybody, I am quite new to data imputation, but I would like to use the R package ' Amelia II: A Program for Missing Data '. However, its unclear to me how the input for amelia should look like: I have a data frame consisting of numerous coulmns, which represent different experimental conditions, whereby each column has 3 replicates. I want amelia to perform an imputation across
2012 Feb 21
0
Running Amelia with parallel processors in Windows
Hi, I want to impute a data set multiple times with Amelia, but the data set is large so it takes a long time. As a result, I'm trying to run the multiple imputation with parallel processors in Windows, but am having trouble. Here is a quick example: ###### library(foreach) library(doSNOW) registerDoSNOW(makeCluster(4, type = "SOCK")) getDoParWorkers() getDoParName()
2023 Dec 07
4
Convert character date time to R date-time variable.
Colleagues, I have a matrix of character data that represents date and time. The format of each element of the matrix is "2020-09-17_00:00:00" How can I convert the elements into a valid R date-time constant? Thank you, John John David Sorkin M.D., Ph.D. Professor of Medicine, University of Maryland School of Medicine; Associate Director for Biostatistics and Informatics,
2023 Dec 07
1
Convert character date time to R date-time variable.
?s 16:21 de 07/12/2023, Sorkin, John escreveu: > Colleagues, > > I have a matrix of character data that represents date and time. The format of each element of the matrix is > "2020-09-17_00:00:00" > How can I convert the elements into a valid R date-time constant? > > Thank you, > John > > > > John David Sorkin M.D., Ph.D. > Professor of
2023 Dec 07
1
Convert character date time to R date-time variable.
Look at the lubridate package in R. Regards, Tim -----Original Message----- From: R-help <r-help-bounces at r-project.org> On Behalf Of Sorkin, John Sent: Thursday, December 7, 2023 11:22 AM To: r-help at r-project.org (r-help at r-project.org) <r-help at r-project.org> Subject: [R] Convert character date time to R date-time variable. [External Email] Colleagues, I have a matrix of
2024 Jan 04
1
Obtaining a value of pie in a zero inflated model (fm-zinb2)
I am running a zero inflated regression using the zeroinfl function similar to the model below: fm_zinb2 <- zeroinfl(art ~ . | ., data = bioChemists, dist = "poisson") summary(fm_zinb2) I have three questions: 1) How can I obtain a value for the parameter pie, which is the fraction of the population that is in the zero inflated model vs the fraction in the count model? 2) For
2024 May 09
2
Print date on y axis with month, day, and year
I am trying to use ggplot to plot the data, and R code, below. The dates (jdate) are printing as Mar 01, Mar 15, etc. I want to have the date printed as MMM DD YYYY (or any other way that will show month, date, and year, e.g. mm/dd/yy). How can I accomplish this? yyy <- structure(list( jdate = structure(c(19052, 19053, 19054, 19055, 19058, 19059, 19060, 19061, 19062,
2023 Dec 08
1
Convert character date time to R date-time variable.
On 12/7/23 08:21, Sorkin, John wrote: > Colleagues, > > I have a matrix of character data that represents date and time. The format of each element of the matrix is > "2020-09-17_00:00:00" > How can I convert the elements into a valid R date-time constant? You will not be able to store these datetime values in an R matrix, at least as class POSIXct. You could with class
2023 Dec 08
1
Convert two-dimensional array into a three-dimensional array.
Colleagues I want to convert a 10x2 array: # create a 10x2 matrix. datavals <- matrix(nrow=10,ncol=2) datavals[,] <- rep(c(1,2),10)+c(rnorm(10),rnorm(10)) datavals into a 10x3 array, ThreeDArray, dim(10,2,10). The values storede in ThreeDArray's first dimensions will be the data stored in datavalues. ThreeDArray[i,,] <- datavals[i,] The values storede in ThreeDArray's second
2023 Oct 24
1
by function does not separate output from function with mulliple parts
Colleagues, I have written an R function (see fully annotated code below), with which I want to process a dataframe within levels of the variable StepType. My program works, it processes the data within levels of StepType, but the usual headers that separate the output by levels of StepType are at the end of the listing rather than being used as separators, i.e. I get Regression results StepType
2024 Jan 04
1
Obtaining a value of pie in a zero inflated model (fm-zinb2)
Are you referring to the zeroinfl() function in the countreg package? If so, I think predict(fm_zinb2, type = "zero", newdata = some.new.data) will give you pi for each combination of covariate values that you provide in some.new.data where pi is the probability to observe a zero from the point mass component. As to your second question, I'm not sure that's possible, for any
2013 Jan 07
1
Amelia algorithm
Dear all. First of all, my english isn't verry good, but I hope I can convey my concern. I've a general question about the Amelia algorithm. I'm no mathematician or statistician, but I had to use R and impute and analyse some data, and Amelia showed results that fitted my expectations. I'll have to defend my choice soon, but I haven't totally grasped what Amelia does. I'm
2024 Apr 07
1
Question regarding reservoir volume and water level
Aside from the fact that the original question might well be a class exercise (or homework), the question is unanswerable given the data given by the original poster. One needs to know the dimensions of the reservoir, above and below the current waterline. Are the sides, above and below the waterline smooth? Is the region currently above the waterline that can store water a mirror image of the
2011 Jul 22
0
Using package amelia
Hello I do not think I have fully grasped how to use Amelia to deal with missing data. For instance, suppose I have a data.frame variable with 4 columns (year, mon, ssn, dev) = (year, month, measurements, standard deviation of the measurement). Of course, there are some random missing values on columns 3 and 4. The measurements are an almost periodic time-series contaminated by noise.
2010 Dec 22
3
Help with Amelia
Hi I have used the amelia command from the Amelia R package. this gives me a number of imputed datasets. This may be a silly question, but i am not a statistician, but I am not sure how to combine these results to obtain the imputed dataset to usse for further statistical analysis. I have looked through the amelia and zelig manuals but still can not find the answer. This maybe because I dont
2013 Feb 15
0
Ho w Do I Get Cox Model Convergence After Multiple Imputation
Due to missing data with some of my predictor variables I first do multiple imputation as follows: library(foreign) library(Amelia) library(norm) set.seed(666) M=10 impdat <-
2011 Jul 25
0
Debugging multiple imputation in mice
Hello all, I am trying to impute some missing data using the mice package. The data set I am working with contains 125 variables (190 observations), involving both categorical and continuous data. Some of these variables are missing up to 30% of their data. I am running into a peculiar problem which is illustrated by the following example showing both the original data (blue) and the imputed
2011 Oct 18
1
getting basic descriptive stats off multiple imputation data
Hi, all, I'm running multiple imputation to handle missing data and I'm running into a problem. I can generate the MI data sets in both amelia and the mi package (they look fine), but I can't figure out how to get pooled results. The examples from the mi package, zelig, etc., all seem to go right to something like a regression, though all I want are the mean and SE for all the
2024 Apr 07
1
Question regarding reservoir volume and water level
John, Your reaction was what my original reaction was until I realized I had to find out what a DEM file was and that contains enough of the kind of depth-dimension data you describe albeit what may be a very irregular cross section to calculate for areas and thence volumes. If I read it correctly, this can be a very real-world problem worthy of a solution, such as in places like California
2010 May 22
0
multiple imputation based on a condition
Any suggestions on the following would be grateful. I'm trying to impute data, where a fictitional dataset is defined as... set.seed(110) n <- 500 test <- data.frame(smoke_status = rbinom(n, 2, 0.6), smoke_amount = rbinom(n, 2, 0.5), rf1 = rnorm(n), rf2 = rnorm(n), outcome = rbinom(n, 1, 0.3)) # smoke_status (0, 1, 2) is c("non-smoker, "ex-smoker",