[R] linearHypothesis

2020-09-17 Thread Johan Lassen
a1+beta2+beta3) -> # y=beta0+beta1*t1+beta2*t2+beta3*t3-(beta1+beta2+beta3)*t4 # y = beta0'+beta1'*(t1-t4)+beta2'*(t2-t4)+beta3'*(t3-t4) data$t1 <- data$t1-data$t4 data$t2 <- data$t2-data$t4 data$t3 <- data$t3-data$t4 model_reduced <- lm(y~t0+t1+t2+t3+0,da

[R] Isolation forest using "solitude" package: help to predict

2019-08-14 Thread Johan Lassen
predict(mo, iris_test[, 1:4],type="anomaly_score") Anyone knows how to predict "normalised (with respect to sample size)" anomaly scores using the solitude package for R? Thanks in advance! Johan -- Johan Lassen "In the cities people live in time - in the mountains people liv

[R] Introductory courses in R in Denmark?

2015-03-12 Thread Johan Lassen
and so on). Thanks in advance! -- Johan Lassen "In the cities people live in time - in the mountains people live in space" (Budistisk munk). [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIB

[R] R and libre office base

2013-05-17 Thread Johan Lassen
Dear community . I would like to connect r to libre office base. Does anyone know if and how this can be done? I think of the pendant to rodbc for libre office. I am using windows 7. Thanks in advance and best regards johan [[alternative HTML version deleted]]

Re: [R] RODBC-Error-sqlSave

2010-05-16 Thread Johan Lassen
> If you succeed we will check R then. > > Caveman > > > On Sun, May 16, 2010 at 11:48 AM, Johan Lassen > wrote: > > Dear R-community, > > > > After repeating the sqlSave-command 3 times on a dataframe (of size 13149 > > rows * 5 columns) to my M

[R] RODBC-Error-sqlSave

2010-05-16 Thread Johan Lassen
.csv", sep =";", header = T)* ** *sqlSave(channel,eksport_transp_acc_2, "transp_acc_scenarier",append = T,fast = F,rownames = F) * -- Johan Lassen "In the cities people live in time - in the mountains people live in space" [[alternative HTML version d

Re: [R] Problem using the source-function within R-functions

2009-10-21 Thread Johan Lassen
gt; The problem probably lies in the source-ing part: look at > > getwd() > setwd() > > HTH, > Giovanni > > > Date: Tue, 20 Oct 2009 13:00:02 +0200 > > From: Johan Lassen > > Sender: r-help-boun...@r-project.org > > Precedence: list > > DKIM-Signature

[R] Problem using the source-function within R-functions

2009-10-20 Thread Johan Lassen
#x27;matrix.r', local = T) source('local_value.r', local = T) source('fordeling.r', local = T) source('fordeling_manuel.r', local = T) source('local_ret.r', local = T) source('Ax=b.r', local = T) source(&

[R] LOOPS - GIS

2008-01-28 Thread Johan Lassen
Dear R-user community, I need to solve a problem related to river management. The task is to calculate the distance from specified points in a river to the outlet of the river. The river is defined by a database (here called "M"): LinkID |NodeID1 | NodeID2 |Distout |Length