search for: optden

Displaying 9 results from an estimated 9 matches for "optden".

Did you mean: open
1997 Dec 02
1
R-alpha: NextMethod in 0.50-a4
...and Future Directions}, year = 1997, address = {New York}, publisher = {Springer-Verlag}, pages = {37--48} } I created an artificial example using the "acid" data so it can be reproduced by others. (BTW, the acid.doc file has a misprint. The name of the second column is "optden", not "opt".) R> data(acid) R> acid carb optden 1 0.1 0.086 2 0.3 0.269 3 0.5 0.446 4 0.6 0.538 5 0.7 0.626 6 0.9 0.782 R> class(acid) [1] "data.frame" R> attr(acid, "formula") <- optden ~ carb R> class(acid) <- c(&...
2002 Dec 13
2
how to get Residual Standard Error
Hi, I use lm or loess to make smoothing. After smoothing I need "Residual Standard Error" in my script. Could you please tell me how can I get this information? Thanks,
2002 Jun 26
1
Bug? (PR#1710)
...dehyde. However, the function lm() did not estimate the coefficient of the term carb^2. The same problem occurred with the (nlme)dataset Pixel with both function lme() and lm(). I am using the windows version of R 1.5.1 Lauri Mehtatalo The Formaldehyde example: > data(Formaldehyde) > lm(optden~carb+carb^2,data=Formaldehyde) Call: lm(formula = optden ~ carb + carb^2, data = Formaldehyde) Coefficients: (Intercept) carb 0.005086 0.876286 The Pixel example: > {pkg <- select.list(sort(.packages(all.available = TRUE))) + if(nchar(pkg)) library(pkg, character.only=...
2000 Dec 30
0
editor in Windows doesn't like a data frame with row names (PR#797)
...collaborative project with many contributors. Type `contributors()' for more information. Type `demo()' for some demos, `help()' for on-line help, or `help.start()' for a HTML browser interface to help. Type `q()' to quit R. > data(Formaldehyde) > Formaldehyde carb optden 1 0.1 0.086 2 0.3 0.269 3 0.5 0.446 4 0.6 0.538 5 0.7 0.626 6 0.9 0.782 > edit(Formaldehyde) # no problem here carb optden 1 0.1 0.086 2 0.3 0.269 3 0.5 0.446 4 0.6 0.538 5 0.7 0.626 6 0.9 0.782 > rownames(Formaldehyde) [1] "1" "2" "3&quot...
2000 Dec 31
0
editor in Windows doesn't like a data frame with row names (PR#798)
.... > Type `contributors()' for more information. > > Type `demo()' for some demos, `help()' for on-line help, or > `help.start()' for a HTML browser interface to help. > Type `q()' to quit R. > > > data(Formaldehyde) > > Formaldehyde > carb optden > 1 0.1 0.086 > 2 0.3 0.269 > 3 0.5 0.446 > 4 0.6 0.538 > 5 0.7 0.626 > 6 0.9 0.782 > > edit(Formaldehyde) # no problem here > carb optden > 1 0.1 0.086 > 2 0.3 0.269 > 3 0.5 0.446 > 4 0.6 0.538 > 5 0.7 0.626 > 6 0.9 0.782 &gt...
2005 Apr 02
2
An exercise in the use of 'substitute'
...f the search list. The second part is relatively easy. The default method for "with" has body eval(substitute(expr), data, enclos = parent.frame()) and you just change this to eval(substitute(expr), eval(data$call$data), enclos = parent.frame()) So, for example > fm <- lm(optden ~ carb, Formaldehyde) > with.lm <- function(data, expr, ...) eval(substitute(expr), eval(data$call$data), enclos = parent.frame()) > with(fm, carb) [1] 0.1 0.3 0.5 0.6 0.7 0.9 However, I haven't been able to work out a clever way of using substitute to get the first part. I would...
1998 Feb 24
2
Representation of data in libraries
At present the example data sets in R libraries are to be given as expressions that can be read directly into R. For example, the acid.R file in the main library looks like acid <- data.frame( carb = c(0.1, 0.3, 0.5, 0.6, 0.7, 0.9), optden = c(0.086, 0.269, 0.446, 0.538, 0.626, 0.782), row.names = paste(1:6)) This is great when you have only a few observations. I have one example data set with over 9000 rows and 17 variables. Even when I set -v 40, I exhaust the available memory trying to read it in as a data.frame. I believe thi...
2007 Dec 06
2
simple problems
Hello R users, I have been looking through Help files and Nabble list for the answers for these simple questions, but it seems to be fruitless. 1- in a data frame with two columns, x and y, how do I get the corresponding value of x to, let's say, the minimum value of the y column (min (data$y)) ? 2- how do I solve a simple equation? Considering the equation y= exp(-x)^12, I would like to find
2004 Nov 03
4
Newbie question: plotting regression models
Greetings. Is there any way to get R to take a regression model object and draw a plot of the regression function? How about overlaying that plot over a scatterplot of the actual data? Thanks in advance for any help anyone can provide. Aaron ----- Aaron Solomon?? (??ben Saul Joseph??) ??Adelman E-mail??: ??adelmaas at musc.edu Web site??: ??http??://??people.musc.edu??/??~adelmaas??/??