search for: prop1

Displaying 6 results from an estimated 6 matches for "prop1".

Did you mean: prop
2006 Nov 15
3
using expects with (for Hash and Array)
...nks for the great library. Is there a way setup expects with this: runtime_options[:property] = properties_option_string or do i have to use: runtime_options.store(:property, properties_option_string) which results in this: runtime_options.expects(:store).with(:property, ''prop1=1'') Thanks for your help. jeremy
2009 Feb 26
1
logistic regression - unequal groups in R
I am getting a repeated error when I try to run a logistic regression in R 2.8.1 >(glm(prop1~x1,data=glm1,family=binomial("logit"),weights=nt1)) Error in model.frame.default(formula = prop1 ~ x1, data = glm1, weights = nt1, : invalid type (list) for variable 'x1' x1 is multistate categorical (3 categories). 2 of the categories have 12 observation, one has 9. Is this...
2018 Mar 22
1
Calculate weighted proportions for several factors at once
...r1=rep(c('male','female'), times=45), var2=rep(c('low','med','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::coun...
2011 Feb 10
0
Chi square test of proprotions in 2 groups of different sizes
...1counts <- matrix(c(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=$...
2005 Jan 25
4
agglomerative coefficient in agnes (cluster)
I haven't read the book, but could anyone explain more about this parameter? help(agnes) says that ac measures the amount of clustering structure found. From the definition given in help(agnes.object), however, it seems that as long as the dissimilarity of the merger in the final step of the algorithm is large enough, the ac value will be close to 1. So what does ac really mean? Thank