Displaying 20 results from an estimated 1000 matches similar to: "a Question regarding glm for linear regression"
2018 Mar 14
2
truncation/rounding bug with write.csv
I don't see the issue here. It would be helpful if people would report
their sessionInfo() when reporting whether or not they see this issue.
Mine is
> sessionInfo()
R version 3.4.3 (2017-11-30)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Arch Linux
Matrix products: default
BLAS/LAPACK: /usr/lib/libopenblas_haswellp-r0.2.20.so
locale:
[1] LC_CTYPE=en_US.UTF-8
2004 May 11
1
calling data frames
Dear List,
I've around 1000 *.txt files, I've generate with other software.
I've now done the following code (below).
My question is how can I automate this (with do.call () ?), so it could be
done for all the *.txt files.
Thanks in advance,
Rog??rio
names<- list.files()
file <- "BLU_Var_%04d.txt"
for(i in 1:1000){
2018 Mar 14
2
truncation/rounding bug with write.csv
To my surprise, I can confirm on Windows 10 using R 3.4.3 . As tail is not
recognized by Windows cmd, I replaced with:
system('powershell -nologo "& "Get-Content -Path temp.csv -Tail 1')
The last line shows only 7 digits after the decimal, whereas the first have
15 digits after the decimal. I agree with Dirk though, 1.6Gb csv files are
not the best way to work with
2010 May 11
1
Help with Names
Hi - a newbie question, if someone can please help....
I want to change X1, X2,,.....to X.1 X.2 etc in the names below. I am using
the Principal Component Regression function (pcr) and it seems to want it
this way
> datap3.pcr <- pcr(water ~ X, 10, data = datap3, Validation ="cv")
Error in model.frame.default(formula = water ~ X, data = datap3) :
invalid type (list) for
2018 Mar 14
2
truncation/rounding bug with write.csv
Hello, I have looked on https://www.r-project.org/bugs.html , but it seems
that this is the only way to do it.
The issue is that the precision used by write.csv is on consistant for big
files. See the following code:
First I create a large dataframe filled with random uniform values. Then I
write it to .csv and print out the first and last lines.
df = data.frame(replicate(100, runif(1000000,
2013 Apr 12
2
model frame and formula mismatch in model.matrix()
Hello everyone,
I am trying to fit the following model
All X. variables are continuous, while the conditions are categoricals.
model <- lm(X2
2018 Mar 14
0
truncation/rounding bug with write.csv
My apologies for not including sessionInfo(), and I'm a bit angry at myself
for that. Retrying in a fresh session of R, I get different results. More
specifically, I get the expected result where accuracy is the same in the
first and the last line. As I didn't include my sessionInfo() in my
previous mail, I can't figure out why I now have a different result. So I'm
positive
2009 Jun 24
2
change the height or scale of the y axis
Hallo, All,
I have a question about changing the height or scale of the y axis. When I
use following two R codes, I can get two plots. Please look at the y axes,
the number of indices (x1, x2, ?) on the y axis in the first plot is smaller
than that in the second plot, and hence the space between any two indices in
the first plot is wider than that in the second plot. As the number of
indices
2012 May 25
2
Query about creating time sequences
Hi All,
I have a query about time based sequences. I know such questions have been
asked a lot on forums, but I couldnt find the exact thing that I was
looking for.
I want to create a time-based sequence which will mimic the trading window
AND would span multiple days. Something like below:
"2011-01-03 09:15:00 IST"
"2011-01-03 09:15:01 IST"
....
....
....
"2011-01-03
2018 Mar 14
0
truncation/rounding bug with write.csv
What OS are you on? On Ubuntu 17.10 with R 3.4.3 all seems well (see
below for your example, I just added a setwd()).
[ That said, I long held a (apparently minority) view that csv is for all
intends and purposes a less-than-ideal format. If you have that much data,
you do generally not want to serialize it back and forth as that is slow, and
may drop precision. The rds format is great for R
2009 Aug 24
0
R survival package error message - bug?!
Dear all,
I have encountered a weird behaviour in R
survival package which seems to me to be a bug.
The weird behaviour happens when I am using
100 variables in the ridge function when calling
coxph with following formula Surv(time = futime,
event = fustat, type = "right") ~ ridge(X1, X2,
X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, X13,
X14, X15, X16, X17, X18, X19, X20, X21, X22,
2013 Apr 05
1
Accessing examplars in apcluster (apcluster package)
Hi,
I was wondering how it was possible to access the actual cluster exemplars
from the APResult class. Currently it only spits it out onto the terminal
if you type the object but there is no other way to see which one is the
examplar.
Would appreciate any help.
Thanks,
Sachin
[[alternative HTML version deleted]]
2011 Jun 01
1
as.character limits length of result for formula
If you want a character representation of a long formula (or
a formula with long names), you can use:
as.character(my.formula)
However restriction on length of an as.character result
returns only the beginning of a long formula, and without comment.
In most cases, the following expression provides the complete
result:
paste(my.formula[[2]], " ~ ",
2018 Mar 14
0
truncation/rounding bug with write.csv
I ran this code in RStudio Server on a linux machine, but I don?t know the version offhand. I will try to get it tomorrow. Thanks.
Thanks,
Greg Michaelson
www.datarobot.com
704-981-1118
> On Mar 14, 2018, at 4:47 PM, Joris Meys <jorismeys at gmail.com> wrote:
>
> To my surprise, I can confirm on Windows 10 using R 3.4.3 . As tail is not recognized by Windows cmd, I replaced
2010 Mar 09
0
error with adaboost: replacement has 186 rows, data has 62
Hi, all,
When running > AB.fit=adaboost(ylearn, xlearn, xtest, presel=0) I got the
following error:
Error in `[[<-.data.frame`(`*tmp*`, preds, value = c(4L, 6L, 6L, 6L, 3L, :
replacement has 186 rows, data has 62
The data structure is attached below:
[1] "ylearn"
[1] 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0
0 0 0 0
[40] 1 1 1 1 1 1 1 0
2004 May 14
9
RV: LATENCY PROBLEMS
Hello there,
I''m having lots of problems with my setup here. Let me explain:
I am network administrator for my university dorm. We are about 300 users,
and we have 2 ADSL connections doing load balancing with 300kbits upstream
and 2Mbit downstream.
The load balancing is working great, we are doing connection tracking so I
can mark and hence prioritize interactive traffic and ACKS
2017 Jun 21
6
RFC: Cleaning up the Itanium demangler
Hello all,
The itanium demangler in libcxxabi (and also, llvm/lib/Demangle) is
really slow. This is largely because the textual representation of the
symbol that is being demangled is held in a std::string, and
manipulations done during parsing are done on that string. The demangler
is always concatenating strings and inserting into the middle of
strings, which is terrible. The fact that the
2012 Aug 08
1
basehaz() in package 'Survival' and warnings() with coxph
Hello,
I have a couple of questions with regards to fitting a coxph model to a data
set in R:
I have a very large dataset and wanted to get the baseline hazard using the
basehaz() function in the package : 'survival'.
If I use all the covariates then the output from basehaz(fit), where fit is
a model fit using coxph(), gives 507 unique values for the time and the
corresponding cumulative
2012 Aug 09
1
basehaz() in package survival and warnings with coxph
I've never seen this, and have no idea how to reproduce it.
For resloution you are going to have to give me a working example of the
failure.
Also, per the posting guide, what is your sessionInfo()?
Terry Therneau
On 08/09/2012 04:11 AM, r-help-request at r-project.org wrote:
> I have a couple of questions with regards to fitting a coxph model to a data
> set in R:
>
> I have a
2004 Oct 28
0
sem : Error in solve.default(C[ind, ind]) : Lapack routine dgesv: system is exactly singular
Hi R-users:
When I run the R script (as the following), I got the error message:
Error in solve.default(C[ind, ind]) : Lapack routine dgesv: system is
exactly singular.
Any help is appreciated.
Ying
library(sem)
R.pw <- matrix(c(
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0.2137356, 0.2137356, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,