similar to: NA's in survey analysis

Displaying 20 results from an estimated 10000 matches similar to: "NA's in survey analysis"

2007 Jul 16
5
how do I draw such a barplot?
Hi, I cannot figure out how to draw a certain plot: could someone help me out? I have this data.frame from a survey my.data that looks like something like this: col1 col2 col3 col4 1 5 5 4 5 2 3 5 3 1 3 2 3 4 5 4 3 1 1 2 5 5 5 4 5 6 4 2 5 5 .... Each row represents a single questionnaire
2007 Dec 19
2
recode based on filter
Hi, I have a data frame DATA, which (simplified of course) looks like this: know1 = c("Y","N","N","Y","N","N","Y","Y","N") par1=c(1,4,5,3,3,2,3,3,5) know2 = c("Y","Y","N","Y","N","N","N","Y","Y")
2007 Aug 04
3
using loops to create multiple images
I have a data.frame with ~100 columns and I need a barplot for each column produced and saved in some directory. I am not sure it is possible - so please help me. this is my loop that does not work... vars <- list (substitute (G01_01), substitute (G01_02), substitute (G01_03), substitute (G01_04)) results <- data.frame ('Variable Name'=rep (NA, length (vars)),
2008 Apr 09
1
simple intro to cluster analysis using R
I am looking for simple introduction to cluster analysis using R, that would be understandable to a novice in statistics. Or, could someone perhaps help me understand how to proceed in my analysis? I am very new to both statistics and R, but am trying hard to avoid having to use SPSS as everyone around me... I have dataset on people presenting their opinions on different religious
2007 Jul 13
2
charset in graphics
How do I make Lithuanian characters display correctly in R graphics? Instead of the special characters for Lithuanian language I get question marks... I use Ubuntu Feisty, the locale is utf-8 ... Do I need to specify somewhere the locale for R, or - default font for the graphics? -- Donatas Glodenis http://dg.lapas.info
2007 Jul 11
5
elementary statistics with R (rkward?)
Hi, I am trying to learn some basic statistics stuff but I cannot find any elementary statistics exercises using R language. Using RKward would be even better... I need that in analysing sociological data, obtained through questionnairres - findind corelations between variables, relations between different types of data, etc. Could anyone recommend simple tutorials/exercises, available on www
2004 Sep 02
1
Question on survey package
Is there a way to use one of the functions in the survey package to get a table of estimated percentages (or proportions) and the standard error for each? For example, suppose that AGECODE AND SEX are two factors with 5 and 2 levels. The 5x2 AGECODE x SEX table would have the estimated percentage of persons in each cell, 100*(sum of weights in the cell) / (sum of all weights) and the std
2011 May 19
1
svytable and na's
hi, i am trying to work with the survey package in order to apply survey design weights. the data set i am using - ess - contains missing values. my question: when using svytable(~variable1+variable2, design=my.svydesign.object, na.rm=T) the resulting crosstable contains all missings although i defined the na's as such. any ideas??? thanks a lot, katharina
2008 Oct 22
1
Package survey
Hi, I’m using the svyby for total statistics, for example: svyby(~p_igov,~div_a,desenho_nps,svytotal,drop.empty.groups=TRUE,vartype =c("se","var","cvpct")) In the numerical variable p_igov (and others) I have many non responses but if I maintain the NA it doesn’t work. summary(base_nps$p_igov) Min. 1st Qu. Median Mean 3rd Qu. Max. NA's
2003 May 14
2
how to include 'NA's in xtabs?
Hello! I have a dataset with NA's in some variables (factors), for example: $ P67 : Factor w/ 2 levels "-","+": NA 2 1 NA NA 2 1 1 2 NA ... I need to use 'xtabs' like xtabs(~x$P67) It works well and produces something like this: x$P67 - + 779 1318 but i want to compute NA's too, like this: x$P67 - + NA 779 1318 137 I am trying
2008 Sep 17
3
t-test between percentages
Hi all, though i know this is a simple question, i really hope someone could. I am just trying to compare percents respectively the difference in percents by a simple test. t.test usually compares means and is working like it is supposed to be. Now i wonder how i can use a test in R to test for significant difference between two percentages.
2023 Jun 28
1
Plotting factors in graph panel
Hi Anupam, Haven't heard from you in a long time. Perhaps you want something like this: at_df<-read.table(text= "Income MF MF_None MF_Equity MF_Debt MF_Hybrid Bank_None Bank_Current Bank_Savings Bank_NA $10 1 3.05 29.76 31.18 36.0 46.54 24.75 25.4 3.307 $25 2 2.29 28.79 32.64 36.27 54.01 24.4 18.7 2.891 $40 3 2.24 29.51 34.31 33.94 59.1 25.0 29 13.4 $75 4 1.71 28.90 35.65 33.74
2002 May 06
3
Viewing certain numbers without NA's
Dear R Community, We have recently installed R 1.5.0 on several workstations. Ever since, if I try to extract certain numbers or lines from a file (which contains many NA's), I don't only get my desired line but all other lines which contain NA's. In a file with 15000 rows and 7500 NA's this is not very practical. In the earlier R-Version this worked when I typed in the
2010 Sep 23
3
Length of vector without NA's
Hi, this following code: x<-c(1,2,NA) length(x) returns 3, correctly counting numbers as well as NA's. How can I exclude NA's from this count? Ralf
2013 Nov 12
1
How to replace NA's data with some value
Hi all, I have a data set with missing value. I would like to estimate those missing value by using normal ratio method. Below is part of my data: AS BL Serdang Jhr Phg Target station 0 0.0 12.8 0.0 23.7 0.0 6 0.0 81.7 0.2 0.0 NA 0 1.5 60.9 0.0 0.0 15.5 1 13.0 56.8 17.5 32.8 6.4 4 3.0 66.4
2016 Feb 08
1
Apparent bug in summary.data.frame() with columns of Date class and NA's present
Hi all, Based upon an exchange with G?ran Brostr?m on R-Help today: https://stat.ethz.ch/pipermail/r-help/2016-February/435992.html there appears to be a bug in summary.data.frame() in the case where a data frame contains Date class columns that contain NA's and other columns, if present, do not. Example, modified from R-Help: x <- c(18000000, 18810924, 19091227, 19027233, 19310526,
2002 Apr 08
2
subsetting with NA's
Hi, I often have large dataframes with many variables and many NA's, from which I would like to subset out some rows. Here is a toy example: > x <- data.frame(a = c("x", "y", "z"), b = c(1, NA, 5)) > x a b 1 x 1 2 y NA 3 z 5 I realize that, if I know the values in x$b that I want to subset, things are easy: > x[x$b %in% c(1),] a b 1 x 1
2006 Oct 12
1
Should NA's in summary() output always be reported???
Consider > summary(1:5) Min. 1st Qu. Median Mean 3rd Qu. Max. 1 2 3 3 4 5 > summary(c(1:5,NA)) Min. 1st Qu. Median Mean 3rd Qu. Max. NA's 1 2 3 3 4 5 1 Wouldn't it be more stringent if "NA's" was also reported in the first case?? Regards S?ren
2009 Mar 02
1
Cross Tables with odfTable in odfweave
Hi, I've been trying to prepare some crosstables for some survey questions for a client. I have been using the CrossTable function in the gmodels package. However, this command only seems to be able to create CrossTables in text documents. I've been trying to use odfTable in odfweave to create tables that are standalone objects in the document that I can then convert to other
2007 May 27
1
na.approx and columns with NA's
Hi, I have a object 'zoo': dim(zz) [1] 720 5551 where some columns only have NA's values (representing land data in a sea surface temperature dataset) I find straightforward the use of 'na.approx' for individual columns from the zz matrix, but when applied to the whole matrix: zz.approx<-na.approx(zz) Erro en approx(along[!na], y[!na], along[na], ...) : need