search for: prop2

Displaying 5 results from an estimated 5 matches for "prop2".

Did you mean: prop
2013 Jul 25
2
Re: [libvirt-users] Resize errors with virt-resize/vgchange
Hi, >> Yes, here's the layout from the vm: >> >> # df -h >> Filesystem Size Used Avail Use% Mounted on >> devtmpfs 7.9G 0 7.9G 0% /dev >> tmpfs 7.9G 0 7.9G 0% /dev/shm >> tmpfs 7.9G 643M 7.3G 9% /run >> tmpfs 7.9G 0 7.9G 0%
2011 Feb 10
0
Chi square test of proprotions in 2 groups of different sizes
...(54,76,125), ncol = 1) G2counts <- matrix(c(14,19,35), ncol = 1) counts<-cbind(G1counts,G2counts) colnames(counts)<-c("Group1","Group2"); rownames(counts)<-c("Option1","Option2","Option3") N1=255 N2=68 Ns=c(N1,N2) prop1<-G1counts/N1 prop2<-G2counts/N2 prop<-cbind(prop1,prop2) colnames(prop)<-c("Group1","Group2"); rownames(prop)<-c("Option1","Option2","Option3") (Ns);(counts);(prop);sum(prop)
2009 Sep 08
1
makefile for sweave
Hello, I have the following makefile. The problem is that the bibliography doesn t work. Any help would be appreciated! I really don t don t what to do..:-( # The sources of the report (tex, Rnw and other files (e.g. bib, idx)) TEX_CMPS = Report problem RNW_CMPS = prop1 prop2 ExeExps OTHER = Report.bib # The name of the report to produce all: Report.pdf code: $(RNW_CMPS:=.R) clean: rm -f *.log *.dvi *~ # On what does the report depends? Report.pdf: $(TEX_CMPS:=.tex) $(RNW_CMPS:=.tex) ${OTHER} makefile TEXINPUTS=${TPUTS} pdflatex $< TEXINPUTS=${TPUTS...
2018 Mar 22
1
Calculate weighted proportions for several factors at once
...39;,'high'), each=30)) %>% tbl_df() # instead of doing this separately for each factor ... df2 <- df1 %>% group_by(group) %>% dplyr::count(var1, wt=wt) %>% mutate(prop1=n/sum(n)) df3 <- df1 %>% group_by(group) %>% dplyr::count(var2, wt=wt) %>% mutate(prop2=n/sum(n)) %>% left_join(df2, by='group') # I would like to do something like the following (which does of course not work): my_fun <- function(x,wt){ freq1 <- dplyr::count(x, wt=wt) prop1 <- freq1 / sum(freq1) return(prop) } df1 %>% group_by(group) %>% summar...
2004 Jun 06
4
Request help writing a function
I have been wrestling with this function for quite a while, and am not making headway. 1) I want to apply a function to the following columns of a dataframe: myfunction. <- apply(ph5028[,c(83:107)],2,function(x) ... 2) Within each of the above columns there is a single numeric code, 1, 2 or 3 or an NA. 3) My goal is to determine the percent of time each person used a 2 code. So if a person