search for: abmathewks

Displaying 20 results from an estimated 33 matches for "abmathewks".

2012 Aug 13
3
Using the effects package to plot logit probabilities
...wever, what I want to do is generate the same plot, with won don y axis and income on x axis, but the curves showing the probabilities for age and home. Not seeing how to do this in the effects documentation. Help! Thanks. -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2012 Jul 19
3
Removing values from a string
...t;")) one Can anyone point me in the right direction? I'm still not too familiar with regex or gsub to find a solution, and there doesn't seem to be anything helpful in the stringr package for this task. Thanks -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2012 Jul 05
2
Plotting the probability curve from a logit model with 10 predictors
...t model. Do I simply expand the expand.grid() function to include all the variables? So my question is how do I form a plot of a logit probability curve when I have 10 predictors? would be nice to do this in ggplot2. Thanks! -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2011 Dec 22
1
Error message with glm
...s. of 2 variables: $ mwin: Factor w/ 3 levels "","ACCEPTED",..: 2 2 2 2 2 2 2 2 2 2 ... $ mbid: int 700 300 700 300 500 300 300 700 300 300 ... Can anyone tell me what I should do to fix the warnings. -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2011 Dec 21
1
Predicting a linear model for all combinations
...the predicted price for every possible combination of values in the independent variables. So Expected price when: weather=1, gender=male weather=1, gender=female weather=2, gender=male etc. Can anyone help with this problem? -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2012 Feb 09
1
Grouping together a time variable
...group the data into one hour increment. So 5:01-6:00am, 6:01-7:00am, 7:01-8:00a, and so forth. However, I'm not sure if there's a simple route to do this in R or how to do it. Can anyone point me in the right direction? -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2012 Aug 02
1
Naive Bayes in R
...ar, so good I think (???). I want to know if there is any diagnostic test to determine the overall misclassification rate of a NB classifier, and if there is a function in R that is available to implement it? Thanks, Abraham -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2012 Aug 08
1
Calculating percentages across multiple columns
...ge of a bid being sold at the same purchase price. Can anyone point me in the right direction. f = data.frame(bid=c(3,5,5,8,3,5,4,2,3,5), purchase=c(6,3,4,5,5,5,6,2,3,7), sold=c(0,1,0,0,0,1,1,0,0,1)) f Thanks. -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2012 Sep 11
1
Plotting every probability curve
...s.factor(df$income) df$gender = as.factor(df$gender) str(df) m1 = glm(factor(sell) ~ home + income + gender, data=df, family=binomial(link="logit")) summary(m1) library(TeachingDemos) TkPredict(m1) Thanks -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2011 Nov 17
1
Error When Installing the RODBC Package
...I know I've encountered this problem in the past, it's just that I'm not sure how I fixed it a year ago. If I remember right, I don't have a package installed that is necessary for RODBC. What is that package? -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2011 Dec 16
1
Zellig Error Message
...omplete.cases(mf), names(dta) %in% vars, drop = FALSE] : incorrect number of dimensions When I ran the model, I ran everything but the explanatory variable as a numeric variable. Now, I'm trying everything and no luck. -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2012 Sep 26
1
Specifying a response variable in a Bayesian network
...uot;,"insured","credit"), col = "red", fill = "grey") bn.hc <- hc(dat, score = "aic") graphviz.plot(bn.hc, highlight=highlight.opts) Thanks, Abraham -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2013 Feb 21
0
Odd Error message with rare events logit
...1.46 1.84 -0.13 -1.16 1.01 ... Playing with the modes of each variable has proved to be fruitless also. I've looked through the Zelig help list and lot of people seem to have this issue, but no one had posted an answer or resolution. -- *Abraham Mathew Statistical Analyst **720-648-0108* *abmathewks@gmail.com * *Twitter <https://twitter.com/abmathewks> **LinkedIn<http://www.linkedin.com/pub/abraham-mathew/29/21b/212/> **Blog <https://mathewanalytics.wordpress.com/> **Tumblr<http://fitnessplusfashion.tumblr.com/> * [[alternative HTML version deleted]]
2011 Dec 15
1
Reordering a numeric variable
...uc2 = factor(educ2) levels(educ2) The above code is how I regrouped the variable. How can I regroup it so that it's levels are from lowest to highest. What if they're numeric values" -- *Abraham Mathew Statistical Analyst This or That Media, Inc. abraham@thisorthat.com 720-648-0108 @abmathewks www.amathew.com * [[alternative HTML version deleted]]
2012 Aug 07
2
Re-grouping data in R
...able(dat$final_purchase_amount) However, this doesn't seem to produce any levels and returns the following. > levels(dat$final_purchase_amount)character(0) Can anyone point to what I'm doing wrong. Thanks! -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2011 Apr 28
1
Merging two columns of a data frame
Hi folks, I have a simple question that I just can't solve. I'm trying to merge two columns in my data frame. > sessionInfo() R version 2.13.0 (2011-04-13) Platform: i686-pc-linux-gnu (32-bit) > head(dat) Year Month Number 2002 Jan 0 2002 Feb 0 2002 March 0 2002 April 1 2002 May 0 2002 June 0 I tried to do the following, but it
2011 Jun 04
1
Partial Matching
Let's say that I have a string and I want to know if a single word is present in the string. I've written the following function to see if the word "Geico" is mentioned in the string "Cheap Geico car insurance". However, it doesn't work, and I assume it has something to do with the any() function. Do I need to use regular expressions? (I hope not) main <-
2011 Dec 16
0
Incorrect Number of Dimensions in Zelig with setx()
...LSE] : incorrect number of dimensions I googled this problem and couldn't find anything, minus a question by me on this same problem from 1.5 years ago. Just don't remember what I did to solve the problem. Help! -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2011 Dec 16
0
Error constructing probabilities in Zelig
...te.cases(mf), names(dta) %in% vars, drop = FALSE] : incorrect number of dimensions Can anyone tell me what I might be doing wrong. If not, can you give me an alternative solution that I can use to generate the probabilities. -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]
2011 Dec 22
0
Finding predicted probabilities
...#39;s 49% and at 700 it's 50%. At 1500, it's 51% These results are just really weird. I was expecting an exponential curve when I plotted mbid by probability of winning, but that doesn't seem to be the case -- *Abraham Mathew Statistical Analyst www.amathew.com 720-648-0108 @abmathewks* [[alternative HTML version deleted]]