Displaying 2 results from an estimated 2 matches for "qr2".
Did you mean:
cr2
2010 Jun 30
2
string question
Hi,
How can I get double quotes embedded in the string?
Example:
--------------
str1 <- '"xyz"'
## desired output
# abc"xyz"
qr2 <- paste('abc',str1,sep='')
print(qr2)
-----------------
Actual output:
> [1] "abc\"str\""
I also tried putting an escape sequence before the quote, but couldn't get the
string that I want.
thanks,
[[alternative HTML version deleted]]
2012 Apr 26
2
How does .Fortran "dqrls" work?
...work = work, PACKAGE = "base")
>
> fittt$coefficients
[1] 0 0
but when i use lm() which also calls "dqrls" internally to fit this model,
it gives reasonable result.
> lm(y~qr)
Call:
lm(formula = y ~ qr)
Coefficients:
(Intercept) qr1 qr2
11.1766 -0.8833 -1.2628
when I change the coefficients to be c(1,1), the output from "dqrls",
fittt$coefficients also equals to c(1,1). That means the .Fortran("dqrls",
qr=qr,n=n,p=p,...) did nothing to the coefficients! I don't know why, is
there anyth...