search for: cbenjami

Displaying 4 results from an estimated 4 matches for "cbenjami".

2017 Jul 05
2
Svyglm Error
...functions, I am coming up with an error: Error in model.frame.default(formula = F3ATTAINB ~ F1PARED, data = data, : the ... list does not contain 4 elements The following is a minimal reproducible example: library(RCurl) library(survey) data <- getURL("https://raw.githubusercontent.com/cbenjamin1821/careertech-ed/master/elsq1adj.csv") elsq1ch <- read.csv(text = data) #Specifying the svyrepdesign object which applies the BRR weights elsq1ch_brr<-svrepdesign(variables = elsq1ch[,1:16], repweights = elsq1ch[,18:217], weights = elsq1ch[,17], combined.weights = TRUE, type = "B...
2017 Jul 05
0
Svyglm Error
...atasets methods base other attached packages: [1] survey_3.32-1 survival_2.41-3 Matrix_1.2-10 RCurl_1.95-4.8 bitops_1.0-6 loaded via a namespace (and not attached): [1] compiler_3.4.1 splines_3.4.1 lattice_0.20-35 On Wed, Jul 5, 2017 at 2:24 PM, Courtney Benjamin <cbenjami at btboces.org> wrote: > Greetings, > > I am revisiting code from several different files I have saved from the > past and all used to run flawlessly; now when I run any of the svyglm > related functions, I am coming up with an error: > > Error in model.frame.default(formul...
2017 Aug 10
3
Creating New Variable Using Ifelse
...As, but as "0" counts in my new variable. My many attempts at creating a nested ifelse statement that would pass the NAs through properly have not been successful. Any help is greatly appreciated. Here is a MRE:? library(RCurl) data <- getURL("https://raw.githubusercontent.com/cbenjamin1821/careertech-ed/master/elsq2wbl.csv") elsq2wbl <- read.csv(text = data) ##Recoding Negative Responses to NA elsq2wbl [elsq2wbl[, "EVERRELJOB"] < -3, "EVERRELJOB"] <- NA elsq2wbl [elsq2wbl[, "PSWBL"] < -2, "PSWBL"] <- NA #Labeling cate...
2017 Aug 10
0
Creating New Variable Using Ifelse
...new variable. My > many attempts at creating a nested ifelse statement that would pass the NAs > through properly have not been successful. Any help is greatly appreciated. > > Here is a MRE:? > > library(RCurl) > data <- > getURL("https://raw.githubusercontent.com/cbenjamin1821/careertech- > ed/master/elsq2wbl.csv") Did not work for me probably due to some restriction of data access. > elsq2wbl <- read.csv(text = data) > > ##Recoding Negative Responses to NA > elsq2wbl [elsq2wbl[, "EVERRELJOB"] < -3, "EVERRELJOB"] <-...