search for: diffse

Displaying 2 results from an estimated 2 matches for "diffse".

Did you mean: diffs
2020 Oct 06
4
Solving a simple linear equation using uniroot give error object 'x' not found
...solve the equation I get an error message, Error in yfu n(x,10,20) : object 'x' not found. I hope someone can tell we how I can fix the problem if(!require(rootSolve)){install.packages("rootSolve")} library(rootSolve) # Define the function yfun <- function(x,diffMean,diffSE) ((abs(diffMean)-x)/diffSE) # Prove the function and a call to the function work yfun(10,100,10) # use uniroot to find a solution to the # function in the range -100 to 100 uniroot(yfun(x,10,20),c(-100,100)) My output: > # Define the function > yfun <- function(x,diffMean,d...
2020 Oct 06
0
Solving a simple linear equation using uniroot give error object 'x' not found
...rror in yfu n(x,10,20) : object 'x' not found. > > I hope someone can tell we how I can fix the problem > > if(!require(rootSolve)){install.packages("rootSolve")} > library(rootSolve) > > # Define the function > yfun <- function(x,diffMean,diffSE) ((abs(diffMean)-x)/diffSE) > # Prove the function and a call to the function work > yfun(10,100,10) > # use uniroot to find a solution to the > # function in the range -100 to 100 > uniroot(yfun(x,10,20),c(-100,100)) > > > My output: >> # Define th...