Skip to content

Failure of loading data and methods in tstmle #1

@WenxinZhang25

Description

@WenxinZhang25

Hi Ivana,

I installed tstmle via devtools::install_github("podTockom/tstmle"), but it seems that the data and methods of tstmle can not be loaded with the following code. Could you please have a look at it if you have a chance? Thank you!

#Load relevant packages:
suppressMessages(library(tstmle))
suppressMessages(library(sl3))
suppressMessages(library(origami))

#set seed:
set.seed(12)

#Load the data:
data("sim_ts_s1")
Warning message:
In data("sim_ts_s1") : data set ‘sim_ts_s1’ not found

#Set library:
Q_library=list("Lrnr_mean", "Lrnr_glm_fast", "Lrnr_glmnet","Lrnr_randomForest","Lrnr_xgboost")
g_library=list("Lrnr_mean", "Lrnr_glm_fast", "Lrnr_glmnet","Lrnr_randomForest","Lrnr_xgboost")

#Obtain estimates:
res<-tstmleSI(sim_ts_s1, Co=TRUE, stratifyAY = TRUE, Cy=6, Ca=5, V=10, Q_library, g_library)
Error in tstmleSI(sim_ts_s1, Co = TRUE, stratifyAY = TRUE, Cy = 6, Ca = 5, :
could not find function "tstmleSI"

Best,
Wenxin

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions