Skip to content

Commit

Permalink
fix first steps with travis
Browse files Browse the repository at this point in the history
  • Loading branch information
sestelo committed Oct 27, 2017
1 parent 6431b26 commit bd8e59b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ r:
- devel


warnings_are_errors: true
warnings_are_errors: true


notifications:
slack: newstat:ZqBL05R4NoRMqPZXnuzbF4OZ
2 changes: 2 additions & 0 deletions R/allotest.R
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ allotest <- function(formula, data = data, na.action = "na.omit",


sta_res <- function(x, y){
y[y == 0] <- 0.0001
model <- lm(log(y) ~ log(x))
muhat <- exp(coef(model)[1]) * x**coef(model)[2]
residuo <- y - muhat
Expand All @@ -221,6 +222,7 @@ sta_res <- function(x, y){
}

sta_rss <- function(x, y){
y[y == 0] <- 0.0001
model <- lm(log(y) ~ log(x))
m0 <- exp(coef(model)[1]) * x**coef(model)[2]
rss0 <- sum((y - m0)**2)
Expand Down
1 change: 1 addition & 0 deletions src/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
NPRegfast.so
program2.o
lsq.mod
Binary file removed src/lsq.mod
Binary file not shown.

0 comments on commit bd8e59b

Please sign in to comment.