When I run ds.glmSummary on a successfully created model object (with either ds.glm or ds.glm SLMA), I get the message:
Aggregated (exists(“test.glm”)) [======================================================] 100% / 0s
Error: The input object test.glm is not defined in pilot_table_1, pilot_table_2!
I have tried specifying the newobj and datasources parameters, or not, and get the same message. Given that there aren’t many parameters to play with, I wasn’t sure what else to try. Does anyone have an idea what causes the error?
The ds.glmSummary works only with objects created by ds.glmSLMA (it doesn’t work with ds.glm). Can you please send the code that you use? What is pilot_table_1, and pilot_table_2? Are those the names of the studies?
In DataSHIELD there are two main types of functions: the aggregate functions that return some statistics/results to the analyst, and the assign functions that create objects on the server-side and do not return anything (except some information about the process or messages) to the analyst.
The ds.glmSLMA is an aggregate function because it returns back to the analyst the regression results. However, this function also saves the regression results on the server-side such that can be used through the ds.glmPredict and ds.glmSummary functions. The results are saved on the servers with a name specified by the analyst in the “newobj” argument. In your example, you didn’t specify the name of the new object, so the object was created on the servers with the default name “new.glm.obj”.
So, you can use that name to do the summary like this: