Hi,
Quick follow-up and additional question.
I got it working with fastglm:
#include
using namespace Rcpp;
// [[Rcpp::export]]
NumericVector misclass(NumericMatrix obs_mat) {
// Obtain environment containing function
Rcpp::Environment base("package:stats");
// Obtaining namespace
On 4 September 2024 at 15:37, Denis Haine wrote:
| Hi,
|
| Sorry for a beginner's question. I'm trying to call an R function (glm())
| inside my cpp code. The code compiles with no problem, but when I'm running
it,
| it cannot find the second element of the formula, i.e. the x in y~x. The error
Hi,
Sorry for a beginner's question. I'm trying to call an R function
(glm()) inside my cpp code. The code compiles with no problem, but when
I'm running it, it cannot find the second element of the formula, i.e.
the x in y~x. The error message is: Error in eval (predvars; data, env)
: obje