search for: joshuawiley

Displaying 20 results from an estimated 771 matches for "joshuawiley".

2010 Jun 02
8
bind select data frames
Dear group, Here is my environment: > ls() [1] "DailyPL100419" "DailyPL100420" "DailyPL100421" "dd" "i" "l" "PLglobal" "Pos100416" "Pos100419" "Pos100420" "Pos100421" "position" [13] "result" "sel"
2014 Aug 07
2
How to (appropropriately) use require in a package?
...ges on each slave once the cluster is started. Right now, I have done this, by evaluating require(packages) on each slave; however, Rcmd check has a note that I should remove the "require" in my code. Thanks! Josh -- Joshua F. Wiley Ph.D. Student, UCLA Department of Psychology http://joshuawiley.com/ Senior Analyst, Elkhart Group Ltd. http://elkhartgroup.com Office: 260.673.5518 [[alternative HTML version deleted]]
2010 Jan 14
5
Better way than an ifelse statement?
...1, ( ifelse(example$X2==4, 3, NA))))))) ## this seems sloppy to me > example X1 X2 X3 1 1.75308880 1 -3 2 -0.49273616 2 -1 3 -0.12446648 3 1 4 -0.06417217 4 3 Thanks for your help, Joshua -- Joshua Wiley Senior in Psychology University of California, Riverside http://www.joshuawiley.com/
2010 Nov 02
5
Question about ggplot2
Dear All, I am trying to graph a simple scatter plot where the x axis is year and the y axis is a percentage (percentage of infant death). Instead of plotting the raw data, I want to plot summary statistics such as mean and median. Here is the problem: the value range of y is between 0 and 1, but since infant death is a rare event, the mean and median is very low (something like 5%), which shows
2011 Jun 21
5
omitting columns from a data frame
Dear R People: I have a data frame, xm1, which has 12 rows and 4 columns. If I put is xm1[,-4], I get all rows, and columns 1 - 3, which is as it should be. Now, is there a way to use the names of the columns to omit them, please? Thanks so much in advance! Sincerely, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Houston - Downtown
2010 Jul 22
5
choosing a random sample by precentage
hi all i have found the follwoing way to choose a random sample by sample size (200): ten_per_T2000 <- F_T2000_All[sample(nrow(F_T2000_All), 200), ] but i wondered if there is a way to choose a sample size by precentage (10% etc..) thx ethan
2010 Oct 08
5
saving object function
Ok so if I have a function: functest<-function(x){ a<-x+1 b<-x+2 c<-x+3 paste(a) paste(b) paste(c) } Now I know I can do cat(), or return() on one of them but if I was to run the function with any number, how could I create objects to save so I could do, I am wondering if I have more than one object within my function. functest$a
2010 Jul 16
4
how to comment off sections
...being using what is done, but I would like the parts I am still working on not to be run when I use source() on the file. I can set everything off with #, but that gets to be tedious. Thanks, Josh -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/
2011 Jul 16
4
Z-test
Hi, please could you recommend a R package that computes a 2 sample z-test ? thanks, Bogdan [[alternative HTML version deleted]]
2010 Aug 04
2
by group testing
Hello, I have a data set which is similar to the following data mice <- rep(letters[1:4],10) outcome <- sample(c(0,1),length(mice),replace=T) group <- c(rep("A",length(mice)/2),rep("B",length(mice)/2)) my.data <- data.frame(mice,outcome,group) my.sort.data <- my.data[order(my.data[,1]),] I would like to test wether there is a different between group A and B
2010 Nov 20
10
An empty grey diagram
Hi folks, Win7 64bit R 1.12.0 I run following command on R:- > ToothGrowth > attach(ToothGrowth) > plot(dose,len) > matrics=lm(len~dose) > abline(metrics) Error in int_abline(a = a, b = b, h = h, v = v, untf = untf, ...) : plot.new has not been called yet Only a grey diagram is displayed without content > plot(abline(metrics)) Error in int_abline(a = a, b = b, h = h, v
2011 May 06
2
editor: not possible to change the variable name
Hi again everybody I have I new problem concerning the editor of R. It is possible to add a new variable column, but they all have the name "var1".I read somewhere that it should be possible to change the variable name by clicking on it, but that doesn't work. Is that a bug or how is it possible to change the variable header? Many thanks Matthias -- View this message in
2010 Nov 06
4
calculate probability
Dear All I have 2 value assume 2.4 and 2.9 and mean = 2 variance = with n = 10 I want to find probability = 2.4 and 2.9. How I can do this. Many Thanks. Jumlong -- Jumlong Vongprasert Assist, Prof. Institute of Research and Development Ubon Ratchathani Rajabhat University Ubon Ratchathani THAILAND 34000 [[alternative HTML version deleted]]
2010 Apr 09
5
Ranking correlation with R
Hey Everyone, Im fresh new in R, and Im supposed to write a code to give me a correlation between two rankings. So I have two ranking lists, which contain file names, e.g.: Ranking list 1: file1.java file3.java file2.java Ranking list 2: fiile2.java file4.java file1.java I need to see how much are these two ranking lists are alike, get a correlation between them. I dont even know where to
2010 Oct 08
3
Import Multiple csv files and merge into one Master file
Dear R Group: How to import multiple csv files and merge into one dataset. Thanks and Regards, Xing [[alternative HTML version deleted]]
2010 Sep 17
1
how to work with Year-Month dates
..., sep='') x <- as.Date(x, "%Y-%B-%d") x <- sort(x) x <- format(x, format = "%Y-%B") > x [1] "2006-July" "2006-December" Thanks, Josh -- Joshua Wiley Ph.D. Student, Health Psychology University of California, Los Angeles http://www.joshuawiley.com/
2011 May 28
2
reduce printing accuracy
Dear all, I would like to print a few values with less digits than the default. How I can reduce how many digits are printed ?(warning: not the real integer resolution but what is shown in screen) Best Regards Alex
2011 Oct 12
3
trace an Rd conversion error in R cmd check
...) on Windows 7 with Rtools 2.14 and MikTeX 2.9 Any suggestions or pointers to manuals/documentation would be greatly appreciated. Thanks, Josh -- Joshua Wiley Ph.D. Student, Health Psychology Programmer Analyst II, ATS Statistical Consulting Group University of California, Los Angeles https://joshuawiley.com/
2012 Jun 05
2
Seeking pointers to various regression techniques with R?
Hi all, Could you please point me to good materials on various tricks/intuitions/techniques of regression, and hopefully in R? For example, what does lm(y~ x * w - 1) mean vs. lm(y ~ x/w -1 ) vs. lm (y ~ x:w-1), etc... I just found that even simple linear regression is not that simple and there are a lot of tricks/techniques in using them... Hopefully I can find good materials on these! Thank
2011 Jun 27
2
Help with histogram intervals
Dear Sir, How do I change the intervals on the x axis of a histogram plot; let us say for example the intervals were 0,5,10,15,and 20, and I wanted to change the intervals to 0,2,4,6,8,10,12,14,16,18,20. I look forward to receiving your words of wisdom. Ivo [[alternative HTML version deleted]]