search for: ofit

Displaying 3 results from an estimated 3 matches for "ofit".

Did you mean: fit
2005 Feb 24
4
r: functions
hi all i have a function that uses two inputs, say xdata and ydata. An example is the following, simple1<-function(xdata,ydata) { ofit<-lm(ydata~xdata) list(ofit) } say i use arbitray number for xdata and ydata such that D = x1 x2 y 1 1 10 2 6 6 3 10 7 x<-D[,1:2] and y<-D[,3] if one uses these inputs and rund the program we get the following: >simple(xdata=x,ydata=y) Error in model.frame(formula, rownames, v...
2010 Jun 21
1
Interpreting lm Residuals...
...ve attached plots of the fit and the residuals to one of my sub-groups, for illustration. By eye, the overwhelming majority of the residuals are within +- 0.4, and I would therefore expect the standard error of the residuals to be ~0.2. However, the output from lm does not show this: >summary(ofit) Call: lm(formula = omag ~ oper, weights = (1/oerr)) Residuals: Min 1Q Median 3Q Max -3.32185 -0.41181 0.03983 0.40041 2.52971 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 19.52847 0.03979 490.8 <2e-16 *** oper -4...
2012 Jan 26
1
3-parametric Weibull regression
Hello, I'm quite new to R and want to make a Weibull-regression with the survival package. I know how to build my "Surv"-object and how to make a standard-weibull regression with "survreg". However, I want to fit a translated or 3-parametric weibull dist to account for a failure-free time. I think I would need a new object in survreg.distributions, but I don't know how