nlsrsqure=function(
data,
dependent,
nlsobject
){
mn=mean(data[,dependent])
data[,"tss"]= (data[,dependent]-mn)^2
value=1-sum(residuals(nlsobject)^2)/sum(data$tss)
return(value)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.