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 Â Â Â Â Â
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:
Hello!
Â
I would like to sample 30 % of cases (with at least 1 value lower than 3 - in
the row) 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 N
Dear all,
I would like to generate 500 matrices of 20 numbers from
standard normal distribution with names x1,x2,x3,â¦.x500. Â
I tried with loop for, but I donât know how to name matices :
for (i in 1:500)Â {
  x[[i]] <- matrix(rnorm(20), 4)    }
Any suggestion?
Thanks, Blaž
Dear R buddies,
Iâm trying to run Principal Component Analysis, package
princomp:
http://stat.ethz.ch/R-manual/R-patched/library/stats/html/princomp.html.
My question is: why do I get different results with pca =
princomp (x, cor = TRUE) and pca = princomp (x, cor = FALSE) even when I
standardi
5 matches
Mail list logo