[R] help with expression()

2009-08-17 Thread deanj2k
Hello. I have a vector and within that vector is one expression. When I display this vector it comes up as expression(NA_character_, NA_character_, "Null Effect", "Pooled effect", NA_character_, NA_character_, NA_character_, NA_character_, NA_character_, paste("Het Contours ", I^2, se

[R] help with as.numeric

2009-05-15 Thread deanj2k
hi everyone, wondering if you could help me with a novice problem. I have a data frame called subjects with a height and weight variable and want to calculate a bmi variable from the two. i have tried: attach(subjects) bmi <- (weight)/((height/100)^2) but it comes up with the error: Warning me

[R] displaying results

2009-05-15 Thread deanj2k
Hi everyone, can anyone tell me how i can change how i display mean(age), i want it to say The mean age of patients within the sample is mean(age) -- View this message in context: http://www.nabble.com/displaying-results-tp23558890p23558890.html Sent from the R help mailing list archive at Nabbl

[R] help with error

2009-05-19 Thread deanj2k
while (theta1!=theta) {...} gives the error message: Error in while (theta1 != theta) { : missing value where TRUE/FALSE needed but when i extract theta1!=theta and paste it into the console it comes up with the output TRUE which contradicts the error message- im not sure what I am doing wron

[R] what is wrong with this code?

2009-05-19 Thread deanj2k
dlogl <- -(n/theta)-sum((y/(theta)^2)*((1-exp(y/theta))/(1+exp(y/theta))) d2logl <- (n/theta^2) - sum((-2y/theta^3)*(1-exp(y/theta))/(1+exp(y/theta))) - sum(((2*y/theta^4)*exp(y/theta))/((1+exp(y/theta))^2)) returns the error message: Error: unexpected symbol in: "dlogl <- -(n/theta)-sum((y/(the

[R] funnel plots

2009-06-12 Thread deanj2k
for the function funnelplot(), how do I include 95% confidence intervals for the effect estimate ( ie. / \ )? -- View this message in context: http://www.nabble.com/funnel-plots-tp24003106p24003106.html Sent from the R help mailing list archive at Nabble.com. ___

[R] axis on a non-uniform scale

2009-06-15 Thread deanj2k
hi everyone, just wondering how i might go about plotting a graph (say using the plot() function) where my x axis is plotting points which have Log(values) but i want my x axis to display values in exponentiated form ie. my log values (also scale of the x axis) x axis displays -1