similar to: Sample based on Factor Selection Criteria

Displaying 20 results from an estimated 3000 matches similar to: "Sample based on Factor Selection Criteria"

2008 Dec 10
2
Confusion with Converting Factors to Dates using as.date
Dear R-Helpers: I'm having a problem getting dates into the correct format. I have a data frame, which is based on a .csv file that I imported into R via read.table. R has converted my date variables to factors; when I use the as.Date command, most of the values are converted "correctly" (and by this I guess I mean converted "as I wish them to be") but some have not been.
2008 Sep 17
3
Stacked Area Plot
Hi: I've searched the archives and the Internet for hours but have yet to find a way to do stacked area plots (like the kind in Excel) in R. I think that polygon may work but it would require a bit of manipulation of my data. I was hoping for an easier way. An example of what I'm trying to do can be found here: http://jcharts.sourceforge.net/samples/stackedArea.html Thanks, Josip
2008 Oct 01
3
Change color of plot points based on values of a variable
Dear R users: I have run a logistic regression, used Gelman et al.'s car package to simulate the parameter estimates of that model, and have plotted the probability (using Gelman et al.'s invlogit() function) of the dependent variable being 1 given the value of a particular independent variable is at its mean. The plot has probabilities on the y-axis and the number (1-1000) of the
2008 Aug 27
3
Calculating total observations based on combinations of variable values
Hello: As someone making the move from STATA to R, I'm finding it difficult at times to perform basic tasks in R, so forgive me if I've missed an obvious and easily obtained solution to my problem. I've searched the help guides and the archives and have not been able to find a solution that works. I have a data frame with thousands of observations that looks something like this:
2009 Jan 13
1
Drawing Polygons with xyplot in lattice
Hello: I've come to a dead-end in my search for a solution to a graphing problem that I am encountering. I have used xyplot (from the lattice package) successfully to plot 36 time-series plots (lines) of under-5 mortality for a set of countries in Sub-Sarahan Africa. What I would now like to do is to add vertical bands (rectangles) that correspond to time-periods during which each of the 36
2009 Jan 27
1
Data Frame Manipulation: Time Series
Dear R Helpers: I have a data set where the unit of observation is country-year. I would like to generate a new data set based on some inclusionary (exclusionary) criteria. Here is an example of the type of data that I have. df<-data.frame(cbind("country"=c(rep("Angola", 9), rep("Burundi", 7), rep("Chad", 13)), "year"=c(1975:1983, 1989:1995,
2009 Feb 09
2
Generating new variable based on values of an existing variable
Dear R Help-Listers: I have a problem that seems like it should have a simple solution, but I've spent hours on it (and searching the r-help archives) to no avail. What I'd like to do is to generate a new variable within a data frame, the values of which are dependent upon the values of an existing variable within that data frame. Assume that I have the following data:
2000 Dec 20
1
syskern fails Rcmd check on Windows, gives incorrect information (PR#781)
syskern (`Functions for writing code that is OS and R/S independent', an amazing description given the reality) fails Rcmd check on Windows, and also gives incorrect information where it does work. There are already correct OS-independent functions for these purposes in R. It appears not to be needed to run the other three packages in the dse bundle, but to be the only R package that
2005 Apr 12
1
one suggestion for R-admin
Just one minor point about building bitmap.dll on Windows in doc/manual/R-admin.texi: In lines 601-605: @item You need @code{libpng} and @code{jpeg} sources (available, e.g., from @url{http://www.libpng.org}, @url{ftp://ftp.uu.net/graphics/}[png,jpeg]. You will need files @file{libpng-1.2.8.tar.gz} and @file{jpegsrc.v6b.tar.gz} or later. and lines 699-707: The file
2009 Oct 16
2
Invite after bye?
Hi there noticed a strange thing in asterisk 1.6.2x 1.6.1x after one of the clients sends bye asterisk first sends invite to other side then after 200 ok it sends bye I am not sure but that could be some missconfiguration issue or a bug? so it's like this: side A sends bye to asterisk, asterisk responds with 200 OK to side A, then it sends INVITE to side B, expects 200 OK
2009 Oct 22
2
carefulwrite: write() returned error: Broken pipe
Dear, I am getting this in CLI on release candidate version of Asterisk. Any ideas, or points where to look? -- Launched AGI Script /var/lib/asterisk/agi-bin/rad-auth.agi [Oct 22 18:21:45] ERROR[9853]: utils.c:1126 ast_carefulwrite: write() returned error: Broken pipe -- <SIP/916-fc001968>AGI Script rad-auth.agi completed, returning 0 Best regards, Josip
2000 Oct 02
1
R build on i86pc Solaris 2.7 (PR#677)
Full_Name: Albrecht Gebhardt Version: 1.1.1 OS: i86pc Solaris 2.7 Submission from: (NULL) (143.205.61.82) jmp_buf type undeclared, may be related to the installed version of libjpeg (this is v6b), compiler is gcc/g77 2.95.2: root@pc05-stat[X11]# make creating src/unix/X11/Makefile making rbitmap.d from rbitmap.c make[1]: Entering directory `/usr/share/src/R-1.1.1/src/unix/X11' gcc -I.
2010 Mar 16
1
Courier to dovecot migrations
Dear All, I saw some topics discussed in forums about this, but none with my problems :( Currently we have a mailserver postfix with courier-imap-4.1.1, and courier-pop3 and courier-authlib. Our Maildir's are written in the users home directory (ex: ~/Maildir) I'm now migrating the mailserver to other cluster and installing with dovecot. We're also moving the Maildir's to
2004 Sep 23
0
Duplicated INVITE in SIP session?
Hello. I'm trying to use Asterisk in combination with SER, to make the routing proccess to my PSTN-Gateways. I made a simple test defining some extension in my extension.conf, when i made a call my SER (SIP) Server forward the call to Asterisk, this proccess is ok, but when the call is answered i see an INVITE going out from Asterisk to my SER Server, this invite is then passed to my
2005 Aug 23
0
problems installing R from source: R-2.1.1 Windows XP
Hi everyone, I’m a Windows XP user. I’m trying to install R-2.1.1 from source, and it doesn’t work. Here’s what I have done: * Got the source code from CRAN : R-2.1.1.tar.gz * Ran ‘tar zxvf R-2.1.1.tar.gz’ in a CMD terminal window. Everything worked fine. I got my R-2.1.1 folder in C:/Rsource. * I got the iconv.dll file downloaded and unzipped it in
2013 May 17
1
Problem with ordiellipse coloured factor in Vegan
Hello R experts, I am trying to plot ordiellipse for my data but the col according to factors. Metabolites_raw= read.csv(file.choose(), head = TRUE) #file 21Metabolites.csv Metabolites_t=t(Metabolites_raw[,2:82]) ord <- metaMDS(Metabolites_t, distance="bray") symbol=as.numeric(Metab_metadata$LandType) col.list <-
2012 Aug 24
1
help with a special variant of balloonplot
Hi, I am interested in implementing a special variant of balloonplot.  Let me explain with an example dataset from the reference manual : library(gplots) data(Titanic) dframe<-as.data.frame(Titanic) survived<-dframe[dframe$Survived=="Yes",] attach(survived) balloonplot(x=Class,y=list(Age,Sex),z=Freq,sort=TRUE,show.zeros=TRUE,cum.margins=FALSE,             main="BalloonPlot :
2007 Jun 21
1
model selection criteria in "regsubsets"
2007 Sep 17
1
Stepwise logistic model selection using Cp and BIC criteria
Hi, Is there any package for logistic model selection using BIC and Mallow's Cp statistic? If not, then kindly suggest me some ways to deal with these problems. Thanks. -- View this message in context: http://www.nabble.com/Stepwise-logistic-model-selection-using-Cp-and-BIC-criteria-tf4464430.html#a12729613 Sent from the R help mailing list archive at Nabble.com.
2010 Dec 01
3
How to pass selection criteria in a function
Hi, Suppose I have the following data name     score Abel        88 Baker      54 Charlie    77 stored a  table called myData. I want to write a function that will create a table which is a subset of myData containing those have a score > 75. I know I can do this with the following command: subset(myData, score > 75) But I would like to do this via a function, something like: