Displaying 5 results from an estimated 5 matches for "pmissing".
Did you mean:
missing
2009 Apr 09
1
.Call()
Hi guys,
I want to transfer the following code from R into .Call compatible form. How
can i do that?
Thanks!!!
INT sim;
for(i in 1:sim){
if(i>2) genemat <- genemat[,sample(1:ncol(genemat))]
ranklist[,1] <- apply(genemat, 1, function(x){
(mean(x[cols]) -
mean(x[-cols]))/sd(x)})
ranklist <- ranklist[order(ranklist[,1]),]
2011 Oct 24
2
C function is wrong under Windows 7
Dear mailing list,
I have a C function that gives me a wrong result when I run it under Windows
7.
This is the code under Linux (RHEL5):
> library(phenoTest)
> data(epheno)
> sign <- sample(featureNames(epheno))[1:20]
> score <- getFc(epheno)[,1]
> head(score)
1007_s_at 1053_at 117_at 121_at 1255_g_at 1294_at
-1.183019 1.113544 1.186186 -1.034779 -1.044456
2011 Jun 03
3
Not missing at random
Hello!
I would like to sample 30 % of cases (with at least 1 value lower than 3) and
among them I want to set all values lower than 3 (within selected cases) as NA
(NMAR- Not missing at random). I managed to sample cases, but I don’t know how
to set values (lower than 3) as NA.
R code:
x <-
2011 Jun 01
1
Missing completely at random
Hello!
I would like to sample 5 % of cases and from 1 to 3 variables within selected
cases and set them as NA (MCAR-Missing completely at random). I managed to
sample cases and variables, but I don’t know how to set them as NA.
R code:
N <- 1000 ####number of cases
n <- 12 ####number of variables
X <- matrix(rnorm(N * n), N, n) ####matrix
pMiss <- 0.05
2010 Oct 22
3
Conditional looping over a set of variables in R
Here's the problem I'm trying to solve in R: I have a data frame that consists of about 1500 cases (rows) of data from kids who took a test of listening comprehension. The columns are their scores (1 = correct, 0 = incorrect, . = missing) on 140 test items. The items are numbered sequentially and are ordered by increasing difficulty as you go from left to right across the columns. I want