Displaying 20 results from an estimated 200 matches similar to: "How do I get a weighted frequency table?"
2010 Jul 10
4
Using Ubuntu as a Server
*Hi,
I want to know how can I configure R in a Ubuntu to be a server.
I am planning to use R in a Windows machine with Tinn-R, but I want R
running at an Ubuntu Lucid machine.
How can i do this?
*Atenciosamente,
Leandro Marino
http://est.leandromarino.com.br/Blog (Estatístico)
Cel.: + 55 21 9845-7707
Cel.: + 55 21 8777-7907
[[alternative HTML version deleted]]
2011 Oct 04
3
Tinn-R
I am new to R and have recently tried Tinn-R with very mixed and unexpected
results. Can you point me to a Tinn-R tutorial on the web or a decent
reference book?
Thank you for your help;
Charles McClure
cmcclure at atrcorp.com
cfmcclure at verizon.net
2013 Apr 13
1
Windows RT or Windows 8
Dear R Experts,
will R run on Windows RT or Windows 8?
I understand these platforms to be significantly different from former Windows versions.
Thank you for your time and answer.
Kind regards
Levke
[[alternative HTML version deleted]]
2012 Mar 05
1
Order a data frame based on the order of another data frame
Hi, I am trying to match the order of the rownames of a dataframe with
the rownames of another dataframe (I can't simply sort both sets
because I would have to change the order of many other connected
datasets if I did that): Also, the second dataset (snp.matrix$fam) is
a snp matrix slot:
so for example:
data_one:
x y
2010 Aug 25
1
Surprising behaviour survey-package with missing values
Dear list,
I got some surprising results when using the svytotal routine from the
survey package with data containing missing values.
Some example code demonstrating the behaviour is included below.
I have a stratified sampling design where I want to estimate the total
income. In some strata some of the incomes are missing. I want to
ignore these missing incomes. I would have expected that
2006 Jul 07
2
Multistage Sampling
Dear WizaRds, dear Thomas,
First of all, I want to tell you how grateful I am for all your
support. I wish I will be able to help others along one day the same way
you do. Thank you so much. I am struggling with a multistage sampling
design:
library(survey)
multi3 <- data.frame(cluster=c(1,1,1,1 ,2,2,2, 3,3), id=c(1,2,3,4,
1,2,3, 1,2),
nl=c(4,4,4,4, 3,3,3, 2,2), Nl=c(100,100,100,100,
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
2006 Feb 07
2
getting strata/cluster level values with survey package?
First, I appoligise for the rooky question, but...
I'm trying to obtain standard errors, confidence intervals, etc. from a
sample design and have been trouble getting the results for anything other
than the basic total or mean for the overall survey from the survey
package.
For example, using the following dataset,
strata,cluster,vol
A,1,18.58556192
A,1,12.55175443
A,1,21.65882438
2012 Nov 30
3
Reading .gsheet within R
Hello R-experts,
I would like to know if there is a solution to read files with extension .gsheet directly into R - see http://www.fileinfo.com/extension/gsheet for more info on this file format.
Thank you,
Luca
Mr. Luca Meyer
www.lucameyer.com
R 2.15.1
Mac OS X 10.8.2
[[alternative HTML version deleted]]
2010 Dec 19
1
package survey
Hi R users,
could someone help me to find out which formulas, for standard error
calculation, are used in following example:
a=data.frame(weights=rep(c(10,1),c(4,1)),fpc=rep(41,5),uk=rep(1,5))
srs<-svydesign(id=~1, weights=~weights, data=a)
srs1<-svydesign(id=~1, weights=~weights,fpc=~fpc, data=a)
svytotal(~uk,srs)
total SE
uk 41 9
svytotal(~uk,srs1)
total SE
uk 41
2012 Aug 30
4
Leading plus in numeric fields
Hello R experts,
I have go this data frame:
'data.frame': 1 obs. of 20 variables:
$ Anno : chr "PREVISIONI VS TARGET"
$ OreTot: num 41
$ GioTot: logi NA
$ OrGTot: logi NA
$ OreCli: num 99
$ GioCli: logi NA
$ OrGCli: logi NA
$ OreFor: num -27
$ GioFor: logi NA
$ OrGFor: logi NA
$ OreOrt: num -18
$ GioOrt: logi NA
$ OrGOrt: logi NA
$ OreSpo: num -6
$ GioSpo: logi
2011 Jan 03
2
error in calling source(): invalid multibyte character in parser
Being italians when writing comments/instructions we use accented letters - like ?, ?, ?, etc.... when running R scripts using such characters I get and error saying:
invalid multibyte character in parser
I have been looking at the help and searched the r-help archives but I haven't find anything that I could intelligibly apply to my case.
Can anyone suggest a fix for this error?
Thanks,
2010 Dec 20
2
tabulating 2 factors weighting by a third var
Hi,
This must be an easy one but so far I haven't find a way out...
I have a data frame such as:
$ v1 : Factor w/ 5 levels
$ v2 : Factor w/ 2 levels
$ v3 : Class 'difftime' atomic [1:6666]
basically v1 and v2 are factors, while v3 is a variable containing the duration of certain activities (values ranging from 11 to 45000 sec, no missing values)
How can I get a table
2008 Aug 15
2
Design-consistent variance estimate
Dear List:
I am working to understand some differences between the results of the
svymean() function in the survey package and from code I have written
myself. The results from svymean() also agree with results I get from
SAS proc surveymeans, so, this suggests I am misunderstanding something.
I am never comfortable with "I did what the software" does mentality, so
I am working to
2011 Aug 30
2
Showing zero frequencies with xtabs
? stato filtrato un testo allegato il cui set di caratteri non era
indicato...
Nome: non disponibile
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110830/7c33d4d0/attachment.pl>
2006 Aug 21
1
"vcov" error in svyby and svytable functions
Hi,
I'm trying to compute survey svytable statistic on subsets by using the
svyby function.
Here is the code:
b<-svyby(~V024+V751, by=~V025, design=strat2, svytable, round=TRUE)
The vars, V024, V751 and V025 are factors. The by var has 2 levels, and
hence there will be two subsets. strat2 is created by the svydesign function.
It's giving me the following error:
>
2007 Sep 20
2
Package Survey
Hello,
How I use the function as.svrepdesign without memory.size problems?
desenho_npc_JK <- as.svrepdesign(desenho_npc,type="JKn")
Error: cannot allocate vector of size 161.3 Mb
In addition: Warning messages:
1: Reached total allocation of 1022Mb: see help(memory.size)
2: Reached total allocation of 1022Mb: see help(memory.size)
3: Reached total allocation of 1022Mb:
2008 Jul 01
5
WIERD: Basic computing in R
Can someone please enlighten me as to why the following happens?
> -2.7^8.6
[1] -5125.407
> p<- -2.7
> q<- 8.6
> p^q
[1] NaN
R seems perfectly able to calculate -2.7^8.6, but fails when the exact same values are assigned to variables and then the computation is repeated.
Thanks in advance for any suggetsions.
Kris.
2004 Apr 12
2
Complex sample variances
Hello,
Is there a way to get complex sample variances in the survey package on summary statistics other than means? If not, can they be added to a future version? It would be be great to have them on totals, quantiles, ratios, and tables (eg row percent, columns percent, etc).
Thanks.
Fred
---------------------------------
[[alternative HTML version deleted]]
2011 Jan 09
1
Getting total bar's label & value labels in a barplot
Hi,
I have been trying to get the label under the total column - i.e. a mean value of columns 2 to 6 - in a barplot I generate with this script:
t1 <- tapply(A, B, sum)
t1[8] <- mean(t1[2:6])
t1 <- as.table(t1)
barplot(t1, ylim=c(0,3000))
mtext("Var1", side = 1, line = 3)
mtext("Var2", side = 2, line = 3)
I have been trying to use
axis(1, at=1:8,