search for: republican

Displaying 20 results from an estimated 49 matches for "republican".

Did you mean: republica
2003 Jan 08
1
Lattice: Plotting two densities on the same plot(s)?
...ty lines. When I try to do it using lattice, I get two two-humped lines. (In other words, I think the smoothing function is taking the next set of data points and smoothing them in the same function as the prior set.) Using: library(nlme) library(grid) Let: democrat <- rnorm(100, 0.3, 0.1) republican <- rnorm(100, 0.5, 0.1) state <- c("Delaware") temp1 <- as.data.frame(cbind(state, democrat, republican)) democrat <- rnorm(100, 0.5, 0.1) republican <- rnorm(100, 0.7, 0.1) state <- c("Pennsylvania") temp2 <- as.data.frame(cbind(state, democrat, republican...
2012 Jul 05
1
Different level set when predicting with e1071's Naive Bayes classifier
...matrix function. For example, consider the following piece of R code: > library(mlbench) > library(e1071) > data(HouseVotes84) > model <- naiveBayes(Class ~ ., data = HouseVotes84) > head(HouseVotes84) Class V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13 V14 V15 V16 1 republican n y n y y y n n n y <NA> y y y n y 2 republican n y n y y y n n n n n y y y n <NA> 3 democrat <NA> y y <NA> y y n n n n y n y y n n 4 democrat n y y n <NA> y n n n n...
2013 Feb 19
3
creating a new variable.
hello, all. in my previous research, i have always used existing data. i am trying something new as an exploratory exercise and have never create my own variable form scratch. essentially, i am creating a variable for party affiliation. here is an example. var =party. levels= democrat, republican, other. respondents will indicate which category they fall under. for the sake of ease, i will use small data as an example. i was thinking the levels would need to be created first- dem <- c(1,1,1,1,0,0,0,0) rep <- c(1,1,1,0,0,0,0,0) other <- c(1,0,0,0,0,0,0,0) then, i could do: p...
2005 Apr 24
4
Vncserver not serving up my gnome desktop, just a fancy terminal!
...cserver serves up my gnome desktop by default. -- Lee Parmeter Emperor, linXos - The Flying Penguin http://www.linXos.com Linux Registered User #337161 'It's free. It works. Duh.'" - Eric Harrison The United States is NOT a democracy, it was founded as a Republic! God is not a republican or a democrat nor is His government a democracy! - Lee Parmeter __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2005 Apr 24
3
apt repo's for centos
...'s for the yum ones? If so, what are they? -- Lee Parmeter Emperor, linXos - The Flying Penguin http://www.linXos.com Linux Registered User #337161 'It's free. It works. Duh.'" - Eric Harrison The United States is NOT a democracy, it was founded as a Republic! God is not a republican or a democrat nor is His government a democracy! - Lee Parmeter __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2006 Nov 08
0
Dataset from one precinct's turnout in yesterday's election
...4 5 6 0 0 4:00 15 6 4 0 0 5:00 24 8 3 0 0 6:00 24 10 4 0 1 7:00 35 7 6 0 0 8:00 13 6 3 0 0 'End' is time the hourly tallies closed; polls were open from 7:00am to 8:00pm. Other columns are the numbers of DEMocrate, REPublican, INDependent (including unaffiliated), LIBertarian and OTHer (such as Green) party members voting. Total registered voters in precinct was 769. Interesting exercises might include tabulating the marginal totals and determining if Democrats or Republicans vote earlier or later. Hope this is enjoya...
2007 Mar 16
1
How can i do the same thing in the China map?
The "maps" package has a function called "match.map", which is for map coloring . Its example is followed: # filled map showing Republican vote in 1900 # (figure 6 in the reference) data(state, package = "datasets") data(votes.repub) state.to.map <- match.map("state", state.name) x <- votes.repub[state.to.map, "1900"] gray.colors <- function(n) gray(rev(0:(n - 1))/n) color <- gray.colors(100)[...
2003 Nov 13
1
what does this multinom error mean?
...er 20 value 449.612636 iter 20 value 449.612636 final value 449.612636 converged > summary(votemn1) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid variable type In this model, rep is a dichotomous (0,1) variable indicating if a person is a republican or not. If I drop that variable, the model does run and the summary method produces estimates & standard errors. > votemn2 <- multinom(vote~V023022+V023027+ V023131,data=nes2002) # weights: 15 (8 variable) initial value 917.341261 iter 10 value 529.137064 final value 527.178682 co...
2005 Apr 21
2
Forums
...to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public." ? President Theodore Roosevelt "Patriotism is supporting your country all the time and your government when it deserves it." - Mark Twain God is not a republican or a democrat nor is His government a democracy! - Lee Parmeter The United States is NOT a democracy, it was founded as a Republic for a specific reason, to protect Liberty for all. In contrast, a democracy insures Liberty to the majority only! It is only recently that politicians have been callin...
2006 Jan 08
1
lmer with nested/nonnested groupings?
...figure out how to use lmer to fit models with factors that have some nesting and some non-nested groupings. For example, in this paper: http://www.stat.columbia.edu/~gelman/research/published/parkgelmanbafumi.pdf we have a logistic regression of survey respondents' political preferences (1=Republican, 0=Democrat), regressing on sex, ethnicity, state (51 states within 5 regions), 4 age categories, and 4 education categories. I'd like to include states (nested within regions), and also age, education, and age x education. (That is, 5 batches of varying coefs: 50 states, 5 regions, 4 ag...
2010 Mar 19
2
Does S inherit the enhancements in R language?
...required in earliest R releases. I rather liked the definitive ; at the end of every command. That looks right to me, probably because of my SAS and C background. Would S+ have a panic attack? Example 3. Namespace. Does S-plus get better as R does? Years ago, I was modeling US Democrats and Republicans and I created an indicator variable called "rep". regression models would not work after that because the rep function had been blocked. It was very frustrating to me. Professor Ripley spotted the error and posed a message called "Don't use the names of R functions as variable...
2005 Apr 27
4
CentOS 4 Software Raid1 questions
I want to mirror an existing 40GB data only drive using software Raid1 on my new CentOS 4 server. The existing drive is connected to a Promise Ultra 100 TX2 controller (non-raid). I have read about mdadm and understand how to create the Raid1 on /dev/mdxx devices. However I would like to know if the existing data on the orignal 40GB drive in the system will be destroyed when I create the raid with
2012 Nov 12
1
Invalid 'times' argument three-category ordered probit with maximum likelihood
...ow(x)) : invalid 'times' argument". I had to adapt the code from a 4 category likelihood and I have a suspicion that the problem is in there. The data set consists of two variables with 558 observations. Econ3 is a 1-3 rating and partyid is a range from -3(Strong Democrat) to 3 (Strong Republican). Here is the code I used: setwd("C:/Users/Terry/Desktop/Terry/School/Fall 2012/ML/HW") #Load Libraries library(MASS) library(tile) library(simcf) #Load Data econrate <- read.csv("hw4econ3.csv", header=TRUE, sep=",") attach(econrate) #Ordered Probit Liklihood ll...
2005 May 24
4
Custom kernel needed for ndiswrapper? (for Linksys WPC54G wireless pcmcia)
Greetings: I'm just installed Centos-4 on an IBM T-21 laptop. So far so good. Now I'd like to pop in a wireless lan adapter. I'm looking at a buying a Linksys WPC54G adapter (although I haven't done so yet). After doing some searching, it looks like the best way to get this card working is via ndiswrapper [http://ndiswrapper.sourceforge.net] and then to use Windoze
2005 Apr 25
1
vino question
...ot using a monitor and keyboard. Regards, Lee -- Lee Parmeter Emperor, linXos - The Flying Penguin http://www.linXos.com Linux Registered User #337161 'It's free. It works. Duh.'" - Eric Harrison The United States is NOT a democracy, it was founded as a Republic! God is not a republican or a democrat nor is His government a democracy! - Lee Parmeter __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2005 Apr 26
2
using vino on centos 4
sorry i figured this out after deleting the other parts of the thread. just run vino-preferences as the user who runs the main x display. it will have various options to enable and as soon as you do that you can get to hostname:0 via vnc. works quite well.
2005 Apr 29
0
fsckcheck
...he problem with the file system. Any comments? -- Lee Parmeter Emperor, linXos - The Flying Penguin http://www.linXos.com Linux Registered User #337161 'It's free. It works. Duh.'" - Eric Harrison The United States is NOT a democracy, it was founded as a Republic! God is not a republican or a democrat nor is His government a democracy! - Lee Parmeter __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2011 Apr 18
4
(no subject)
Hai From which CRAN mirror can get the package ‘LPP2005REC’ Ram [[alternative HTML version deleted]]
2011 Jun 14
0
error message trying to plot survival curves from hypothetical covariate profiles
...ata(evstatus), method=c("efron"), robust=TRUE) Again, following Fox, I try to construct a data frame with a hypothetical covariate profile: n<-data.frame(news=rep(c(1,4,8)), evstatus=as.factor(1:3), enviro=mean(newdat$enviro), partisan=c("democrat", "mixed", "republican")) plot(survfit(mymod1, newdata=n)) Error in scale.default(x2, center = xcenter, scale = FALSE) : length of 'center' must equal the number of columns of 'x' I've looked and someone encountered a similar error trying to plot predicted values from a stepwise regression....
2007 Aug 20
1
Common routines for custom functions
Hello I want to share some common subroutines between my custom functions. Given the way Puppet loads the .rb files in $plugindest/puppet/parser/functions, does anyone know how should I lay this out? I tried creating a module myutilities def self.blah() ... end end (NOT within the newfunction() call) in one of the (top-level) functions'' .rb file. However, calling