[R] using latticeExtra plotting confidence intervals

2010-06-12 Thread Joe P King
I am wanting to plot a 95% confidence band using segplot, yet I am wanting to have groups. For example if I have males and females, and then I have them in different races, I want the racial groups in different panels. I have this minor code, completely made up but gets at what I am wanting, 4 rand

Re: [R] using latticeExtra plotting confidence intervals

2010-06-14 Thread Joe P King
name worth remembering." --Theodore Roosevelt -Original Message- From: Deepayan Sarkar [mailto:deepayan.sar...@gmail.com] Sent: Sunday, June 13, 2010 10:15 PM To: Joe P King Cc: r-help@r-project.org Subject: Re: [R] using latticeExtra plotting confidence intervals On Sun, Jun 13, 201

[R] loop troubles

2010-07-17 Thread Joe P King
Hi all, I appreciate the help this list has given me before. I have a question which has been perplexing me. I have been working on doing a Bayesian calculating inserting studies sequentially after using a non-informative prior to get a meta-analysis type result. I created a function using three it

Re: [R] loop troubles

2010-07-18 Thread Joe P King
[mailto:dwinsem...@comcast.net] Sent: Sunday, July 18, 2010 5:36 AM To: Joe P King Cc: r-help@r-project.org Subject: Re: [R] loop troubles On Jul 17, 2010, at 9:09 PM, Joe P King wrote: > Hi all, I appreciate the help this list has given me before. I have a > question which has been perp

Re: [R] loop troubles

2010-07-18 Thread Joe P King
life of ease left a name worth remembering." --Theodore Roosevelt -Original Message----- From: Joe P King [mailto:j...@joepking.com] Sent: Sunday, July 18, 2010 6:13 AM To: 'r-help@r-project.org' Subject: RE: [R] loop troubles I tried that, this is what I tried, but

[R] selected value in a vector to make bold

2010-10-06 Thread Joe P King
I wasn't sure about the subject so I am sorry about the vagueness, but if I have a vector of values, how do I get a certain type of vectors to be bold or italics? So let x be a vector from -10 to 10, how would I tell it to bold the x values that are greater than 0? Or like absolute value of 5?

Re: [R] selected value in a vector to make bold

2010-10-06 Thread Joe P King
ik Iverson [mailto:er...@ccbr.umn.edu] Sent: Wednesday, October 06, 2010 12:13 PM To: Joe P King Cc: r-help@r-project.org Subject: Re: [R] selected value in a vector to make bold What output medium? On a graphic? In LaTeX ouput? Or do you mean in the R console? Joe P King wrote: > I wasn

Re: [R] selected value in a vector to make bold

2010-10-06 Thread Joe P King
al Message- From: Erik Iverson [mailto:er...@ccbr.umn.edu] Sent: Wednesday, October 06, 2010 12:13 PM To: Joe P King Cc: r-help@r-project.org Subject: Re: [R] selected value in a vector to make bold What output medium? On a graphic? In LaTeX ouput? Or do you mean in the R console? Joe P

[R] saving object function

2010-10-07 Thread Joe P King
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 cou

Re: [R] saving object function

2010-10-08 Thread Joe P King
...@joepking.com "Never throughout history has a man who lived a life of ease left a name worth remembering." --Theodore Roosevelt -Original Message- From: Joshua Wiley [mailto:jwiley.ps...@gmail.com] Sent: Thursday, October 07, 2010 11:43 PM To: Joe P King Cc: r-help@r-project.o

Re: [R] saving object function

2010-10-08 Thread Joe P King
ng." --Theodore Roosevelt -Original Message- From: Joshua Wiley [mailto:jwiley.ps...@gmail.com] Sent: Thursday, October 07, 2010 11:43 PM To: Joe P King Cc: r-help@r-project.org Subject: Re: [R] saving object function Hi Joe, You can just put the results into a named list, fo

Re: [R] saving object function

2010-10-08 Thread Joe P King
al Message- From: Joshua Wiley [mailto:jwiley.ps...@gmail.com] Sent: Friday, October 08, 2010 7:17 PM To: Joe P King Cc: r-help@r-project.org Subject: Re: [R] saving object function Hi Joe, There is an important distinction between working with data and presenting data. You do not want to

Re: [R] multivariate multi regression

2010-12-13 Thread Joe P King
I am not even sure what model you are trying to run, you are talking about regression slopes for x1 being coef1, and coef2 being the slope for x2, where are you getting coef3 from, is it in your data? Joe King 206-913-2912 j...@joepking.com "Never throughout history has a man who lived a life of e

Re: [R] VarCorr

2011-01-19 Thread Joe P King
Cant you just save that column of values to an object stddev<-VC[,2]#if it's the second column that has the values also I wouldn't save your model name in the same name as the command, when you have " lmer<-lmer(y~1+(1|sampfac)+(1|labfac))", may be best to have "lmer.mod<-lmer(y~1+(1|sampfac)+(1|

[R] splitting a square symmetric matrix

2011-01-20 Thread Joe P King
So many matrices are square symmetrical (i.e. variance-covariance matrices), is there any way to get R to split the matrix on its diagonal and just return one diagonal? So if I have mat<-matrix(c(1,4,3,4,1,2,3,2,1), nrow = 3, ncol=3, byrow=TRUE) is there anyway to get the lower right di

Re: [R] List of all times zones in R

2011-01-30 Thread Joe P King
Type in letters into command prompt > letters [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" [20] "t" "u" "v" "w" "x" "y" "z" Joe King 206-913-2912 j...@joepking.com Ad astra per aspera – “Through hardships to the stars” -Original Message- From: r-help-

[R] Rubin's rules of multiple imputation

2011-01-30 Thread Joe P King
Hello all, if I have multiple imputed data sets, is there a command or function in R in any package you know of to combine those, I know one common MI approach is rubins rules, is there a way to do this using his rules or others? I know theres ways, like using Amelia from Gary King's website to cre

[R] confidence intervals when using polr()

2011-03-09 Thread Joe P King
Hello, I am running a model with four categories and want predicted probabilities in each category. Now for this example I wont give a counterfactual just the training data is fine but is there anyway to get a confidence interval around the predicted probabilities in each group? I have tried but it

[R] predict ordered regresssion

2011-04-10 Thread Joe P King
Is there a way to get confidence intervals around an ordered regression like polr() in the MASS package? --- Joe King, M.A. Ph.D. Student University of Washington - Seattle 206-913-2912 j...@joepking.com --