Displaying 4 results from an estimated 4 matches for "lprice".
Did you mean:
price
2003 Sep 22
2
ksmooth in SPLUS vs R
...rs.
the problem is that when I use the ksmooth() function in R it estimates
the function at different points and not those that consist of the Z
vector.
the ksmooth() function in Splus on the other hand evaluates the points at
the corresponding Z vector. both codes are given below
d<-ksmooth(lprice,XX[,i],kernel="box")
unique(lprice-d$x)
in SPLUS will generate 0 while in R it generates a vector of different
values.
My second question is regarding the sm library:
d<-sm.regression(lprice, XX[,i], h=sd(lprice), display="none")
will only generate 50 point estimates whi...
2003 Sep 23
0
ANOVA(L, Terms...)
...> the function at different points and not those that consist of the Z
> > vector.
> >
> > the ksmooth() function in Splus on the other hand evaluates the points
>at
> > the corresponding Z vector. both codes are given below
> >
> >
> > d<-ksmooth(lprice,XX[,i],kernel="box")
> > unique(lprice-d$x)
> >
> > in SPLUS will generate 0 while in R it generates a vector of different
> > values.
> >
> >
> >
> > My second question is regarding the sm library:
> >
> > d<-sm.regression(lp...
2011 Sep 25
1
Question about syntax in lm function
I encounters some codes in ggplot2 manual and confused with one of its lm syntax. The code is here:
library(ggplot2) d <- subset(diamonds, carat < 2.5 & rbinom(nrow(diamonds), 1, 0.2) == 1) d$lcarat <- log10(d$carat) d$lprice <- log10(d$price) detrend <- lm(lprice ~ lcarat, data = d) d$lprice2 <- resid(detrend) mod <- lm(lprice2 ~ lcarat * color, data = d) # ***
what puzzled me is the last statement marked with ***. How does R deal with lcarat * color, since color is not of numeric value. If this is ok, how...
2012 Mar 23
5
How to convert factors to numbers
Hello, I am relatively new to using R.
The text file contains the date and price . I want to read and manipulate
the data in R. However, when I use read.table, it treats all of the data as
"factors" and I do not know how to treat the data as numbers:
http://r.789695.n4.nabble.com/file/n4498828/p_diarios.txt p_diarios.txt
setwd ("C:\\Users\\Sandro\\Dropbox\\R")