For questions relating to missing data problems, which can involve special data structures, algorithms, statistical methods, modeling techniques, visualization, among other considerations.
2
votes
1answer
16 views
interactions terms in multiple imputations (Amelia or other mi packages)
I have a question about interaction terms in multiple imputations. My understanding is that the imputation model is supposed to include all information that is used in the later analysis including any ...
2
votes
3answers
77 views
Finding missing number in a sequence
I need to find one missing number, from a sequence of numbers
such as
4 8 12 16 __ 24.
I need to find the missing number. How would I do that programmatically?
the numbers and the missing ...
1
vote
2answers
27 views
Find most recent non-missing value in a vector
I'm trying to return the most recent row in the vector with a non-missing value. For instance, given
x <- c(1,2,NA,NA,3,NA,4)
Then function(x) would output a list like:
c(1,2,2,2,3,3,4)
Very ...
-2
votes
0answers
44 views
How to compute the Standard Normal Homogeinity Test, Buishand range test, Von neuman ratio test and the Pettitt test [on hold]
I am not very new to R as I use it for my daily data analysis needs. I have been searching for an R package that can compute Standard Normal Homogeinity Test, Buishand range test, Von Neumann ratio ...
-1
votes
1answer
61 views
impute error: a column has 80% missing value
I need to calculate the missing values (specific probeset)in the sample using 6 nearest neighbors and Euclidean distance with the impute.knn() function. I had to replace a value with NA in my dataset ...
0
votes
1answer
28 views
Android-java Fil transfer over TCP byte missing
sending side- It is in android and it is part of AsyncTask, doInBackground. Basically, it will send file name, size, and image data to serverside.
InetAddress serverIP = ...
0
votes
1answer
32 views
How to remove NA from a factor variable (& from a ggplot chart)?
I have a problem with NA in a factor variable since ggplot includes them in the plot as if they are another category/level. I would like to drop the missing data.
I am sorry I don't have code handy at ...
0
votes
1answer
38 views
Non standard node informations issue (XPath, C code)
I'm using libxml2 (2-2.7.8) and xpath (v1) to extract with my C program some information from wunderground.com generated XML file.
If all nodes contains informations all work great. The problem is ...
3
votes
3answers
70 views
Identify missing values in a sequence / perform asymmetric difference between two lists
Using R, I want to efficiently identify which values in a sequence are missing. I've written the below example of how I do it. There must be a better way. Can someone help?
data.list=c(1,2,4,5,7,8,9)
...
-1
votes
1answer
52 views
how to resolve the warning in R [closed]
The data i am using looks as shown below, it has 50000 instances and 32 variables....
The missing values are present in many varibles ,..
sorry was unable to post the entire data..
I used
...
0
votes
0answers
106 views
facebook share url show preview details only on second time click
I have a share button on my site (I use AddThis tool)
and Open Graph meta tags with article as a type:
meta property="fb:app_id" content="No"
meta property="og:image" content="LogoUrl"
meta ...
3
votes
2answers
61 views
Using R to insert a value for missing data with a value from another data frame
All,
I have a question that I fear might be too pedestrian to ask here, but searching for it elsewhere is leading me astray. I may not be using the right search terms.
I have a panel data frame ...
2
votes
1answer
35 views
R factor NA vs <NA>
I have the following data frame:
df1 <- data.frame(id = 1:20, fact1 = factor(rep(c('abc','def','NA',''),5)))
df1
id fact1
1 1 abc
2 2 def
3 3 NA
4 4
5 5 abc
6 6 def
...
1
vote
1answer
60 views
Set values of groups in pandas conditionally python
I have a datafram with the following columns:
duration, cost, channel
2 180 TV1
1 200 TV2
2 300 TV3
1 nan TV1
2 nan TV2
2 nan ...
0
votes
1answer
23 views
UPDATE annual changes with discontinuous dates
This answer has shown me how to get annual changes from data:
UPDATE values_table as a
join values_table as b
ON b.date_sampled = DATE_SUB(a.date_sampled, INTERVAL 1 YEAR)
set a.annual_change = ...