search for: design2

Displaying 16 results from an estimated 16 matches for "design2".

Did you mean: design
2010 Mar 04
1
mysqlWriteTable . error in your SQL syntax?
Hi, Can somebody advice on weird mysqlWriteTable bug. > mysqlWriteTable(conn, 'comparison',design2, row.names = F, overwrite=T) Error in mysqlExecStatement(conn, statement, ...) : RS-DBI driver: (could not run statement: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"condition" text, treatme...
2006 Jun 18
1
Post Stratification
Dear WizaRds, having met some of you in person in Vienna, I think even more fondly of this community and hope to continue on this route. It was great talking with you and learning from you. Thank you. I am trying to work through an artificial example in post stratification. This is my dataset: library(survey) age <- data.frame(id=1:8, stratum=rep(
2018 Mar 22
3
exporting data to stata
...ds") > library(foreign) > write.dta(data="data1", file = "D:/datasets/data1.dta") Error in write.dta(data = "data1", file = "D:/datasets/data1.dta") : The object "dataframe" must have class data.frame > class (data1) [1] "survey.design2" "survey.design" [[alternative HTML version deleted]]
2007 Nov 24
1
question regarding an error message from survey package
...39;f','m') > b<-c(1:3) > st<-c(1:3) > data.frame(a,b,st) a b st 1 m 1 1 2 f 2 2 3 m 3 3 > data.frame(a,b,st)->l > p<-svydesign(ids=~1, data=l) > pop<-c('(intercept)'=100, st1=10,st2=20) > calibrate(p,~st, pop) Error in regcalibrate.survey.design2(design, formula, population, aggregate.stage = aggregate.stage, : Population and sample totals are not the same length. Thank you and have a great day! --------------------------------- [[alternative HTML version deleted]]
2018 Mar 22
0
exporting data to stata
...ds") > library(foreign) > write.dta(data="data1", file = "D:/datasets/data1.dta") Error in write.dta(data = "data1", file = "D:/datasets/data1.dta") : The object "dataframe" must have class data.frame > class (data1) [1] "survey.design2" "survey.design" [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-...
2008 Jan 25
3
function code
R-help, Sorry for this question (I guess it has been addressed before but I could not find it in the archives) but how can I see a function code when the following comes up: > svymean function (x, design, na.rm = FALSE, ...) { .svycheck(design) UseMethod("svymean", design) } <environment: namespace:survey> Thanks in advance
2009 Jan 11
1
calibrate function
Hi all, I have a question on the package « survey” I have some difficulties to use the function ‘calibrate’. Although it works well with one single factor variable, I cannot use it for 2 and get the message “Erreur dans regcalibrate.survey.design2(design, formula, population, aggregate.stage = aggregate.stage, : Population and sample totals are not the same length.” Here is the format I use as a data.frame: ecodiaMG[1:10, 71:73] age_cl1 sexe1 region1 1 MG_54 MG_H MG_NE 2 MG_54 MG_H MG_NE 3 MG_54 MG_H MG_NE...
2018 Mar 22
1
exporting data to stata
...foreign) >> write.dta(data="data1", file = "D:/datasets/data1.dta") > Error in write.dta(data = "data1", file = "D:/datasets/data1.dta") : > The object "dataframe" must have class data.frame >> class (data1) > [1] "survey.design2" "survey.design" > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide h...
2006 Jul 07
2
Multistage Sampling
...ince I calculated the Taylor Series solution, i suppose there must be another approach? The calibration help page tells me to enter a list of population total vectors for each cluster, which would result in: dmulti3.cal <- calibrate(dmulti3, ~1, pop=c(100,50,75)) Error in regcalibrate.survey.design2(design, formula, population, aggregate.stage = aggregate.stage, : Population and sample totals are not the same length. I am very grateful for your help and wish you alle the best Yours mark
2012 Jun 30
0
Help with the proportional odds model (Colombia)
...EDAD_1=Edad_1,EDAD_2=Edad_2) # Corresponds to a transformation that you suggested me 2) mod.polti.ultico<-svyolr(APES~EDAD_1,EDAD_2,design=Muestra.comp.multi,method=c("logistic")) And this is the error that comes out (I could help resolve this error, please): Error en svyolr.survey.design2(APES ~ EDAD_1, EDAD_2, design = Muestra.comp.multi, : response must be a factor Thank you very much for your help. [[alternative HTML version deleted]]
2013 Oct 10
0
Using calibrate for raking (survey package)
...rake.svy <- rake(emp.svy, list(~Gender, ~Age), list(pop.gender, pop.age)) cal.svy <- calibrate(emp.svy, formula = list(~Gender, ~Age), population = list(pop.gender, pop.age), cal.fun = "raking") # Warning message: # In regcalibrate.survey.design2(design, formula, population, aggregate.stage # = aggregate.stage, :Sample and population totals have different names. # check weights--M and F seem reversed when "calibrate" used library(reshape2) check1 <- with(rake.svy, cbind(variables, weight = 1/prob)) dcast(check1, Gender~Age, s...
2010 Jun 03
1
problem with 'svyby' function from SURVEY package
...lems. Consider this really basic custom function (that does not seem very different from the above code): this_is_a_test <-function(outcome, covariate) { svyby(~outcome, ~covariate, design=dhanes, svymean, na.rm=T) -> haha print(hah) } I get the following output: Error in `[.survey.design2`(design, nas == 0, ) : (subscript) logical subscript too long I really don't understand this because I haven't done anything too different. Before I can even start writing up the rest of the function, I have to settle this. Any ideas? -Roni [[alternative HTML version deleted]]
2008 Sep 09
1
survey package
Version 3.9 of the survey package is now on CRAN. Since the last announcement (version 3.6-11, about a year ago) the main changes are - Database-backed survey objects: the data can live in a SQLite (or other DBI-compatible) database and be loaded as needed. - Ordinal logistic regression - Support for the 'mitools' package and multiply-imputed data - Conditioning plots,
2008 Sep 09
1
survey package
Version 3.9 of the survey package is now on CRAN. Since the last announcement (version 3.6-11, about a year ago) the main changes are - Database-backed survey objects: the data can live in a SQLite (or other DBI-compatible) database and be loaded as needed. - Ordinal logistic regression - Support for the 'mitools' package and multiply-imputed data - Conditioning plots,
2004 Apr 09
1
samba3 to Win 2003, signing mandatory but disabled?
...------ Gold2 Disk tsweb Disk COVERPG$ Disk ... (and so on) -------output from `testparm -v`--------- # Global parameters [global] dos charset = CP850 unix charset = UTF-8 display charset = LOCALE workgroup = ROBOTRONICS realm = netbios name = DESIGN2 netbios aliases = netbios scope = server string = Software development interfaces = bind interfaces only = No security = DOMAIN auth methods = encrypt passwords = Yes update encrypted = No client schannel = Auto server schannel = Auto allow trusted domains = Yes hosts equiv = min pass...
2009 Nov 14
4
Weighted descriptives by levels of another variables
I've noticed that R has a number of very useful functions for obtaining descriptive statistics on groups of variables, including summary {stats}, describe {Hmisc}, and describe {psych}, but none that I have found is able to provided weighted descriptives of subsets of a data set (ex. descriptives for both males and females for age, where accurate results require use of sampling