Hello everyone. I am new to creating modules in jamovi. I have the following doubt: I am trying to create a confidence interval for variance, but when I run it in jamovi I get error.
This is what I wrote in the jamovi .a file
Then, in the R code (.b file) I write the following:
but, finally, in Jamovi the following happens
Could you tell me what can I do please? Thanks!
Confidence interval for variance
Re: Confidence interval for variance
hi,
so you've assigned the variable A to the 'variable' option. so self$options$variable will have the value 'A'. now consider the following:
var(self$options$variable)
the variance of 'A' is undefined, and you'll get a NA or similar.
i'd suggest you want to go:
etc.
cheers
jonathon
so you've assigned the variable A to the 'variable' option. so self$options$variable will have the value 'A'. now consider the following:
var(self$options$variable)
the variance of 'A' is undefined, and you'll get a NA or similar.
i'd suggest you want to go:
Code: Select all
if (is.null(self$options$variable)) # if the user hasn't specified a variable, do nothing
return()
variable <- self$data[[self$options$variable]]
v <- var(variable)
n <- length(variable)
cheers
jonathon