Displaying 6 results from an estimated 6 matches for "linreg".
Did you mean:
inreg
2009 Jul 13
1
regression with replication
...to fit a linear regression with replication (on each year,
observation is replicated, e.g 4 times). The independent variable ranges
for instance 1-5 year, so I expect to have a linear fit of 5 points.
For that purpose I do these (with dummy variables x and y):
x<-rep(seq(1:5),4)
y<-rnorm(20)
linreg<-lm(y~x)
fitted.values(linreg) # why produce 20 points of estimate?
predict(linreg) # why produce 20 points of estimate?
Please somebody explain:
1. why both fitted.values and predict functions produced 20 points of
estimate, NOT 5 points.
2. is "lm(y~x)" correct to solve this...
2010 Feb 01
1
Manipulating data, and performing repeated simple regressions, not multiple regression
..., it looks how I want it to look.
#However, I can't use it: when I perform even a regular multiple regression
on it, I get the error message:
# Error in model.frame.default(formula = Resultnew ~ Var1 + Var2 + Var3,
:
# 'data' must be a data.frame, not a matrix or an array
#e.g.:
linreg=lm(Resultnew~Var1+Var2+Var3, data=reg_data)
So: 1) is there a better way to calculate the squared data, so that I can
use the output more flexibly, and 2) can I perform the calculation not as a
multiple regression, but to get separate regressions.
Ideally the output should be something like:
V...
2003 Dec 23
3
question: DLL or EXE from R procedures
Hi,
I wonder if it is possible to create an DLL or EXE file performing R procedures. Instead of running R, reading data and calling some procedures, I would like to use R functions in the following way: "C:\linearRegression.exe data.txt" which would produce let's say file "output.txt" with the results. Is there some way how to do it?
Thanks a lot. Pavel Vanecek
2012 Jan 10
1
grplasso
...ing part:
?
index<-c(NA,)
?
but I'm not sure how to specify the df for the variables past the NA for the intercept.
?
Once that's defined the penalty can be specified:
?
lambda <- lambdamax(x, y = y, index = index, penscale = sqrt,
model = LogReg()) * 0.5^(0:5)?
In my case I'd use LinReg for the model.?
?
Then the model:
?
fit <- grplasso(x, y = y, index = index, lambda = lambda, model = LogReg(),
penscale = sqrt, control = grpl.control(update.hess = "lambda", trace = 0))
?
again using LinReg for the model.
This can be plotted against lambda, but when I do lasso regr...
2005 Jun 10
1
RCMD Warnings on src directory.
...me.
I did a RCMD INSTALL dnal and it installed well.
When i do RCMD check dnal i get the following 2 WARNINGS with no Errors.
checking package directories..WARNING
Subdirectory 'src' contains no source files.
checking for missing documentation entries...WARNING
Undocumented code object:
linReg refGroup
Regarding my first Warning ..I have no C/Fortran files so what should i put in 'src' directory.
Regarding my second Warning ..I stripped the .Rd files of the listed objects line by line and checked and i could not figure it out. Rout file offers no help on Warnings.
Any suggest...
2012 Nov 19
1
Help: Meta-analysis with metacor
...9, -0.1511, -0.1054)> n<-c(3,4,3,3,3,3,16,36,30,9,3,3,30,4)> library(meta)> metacor(cor, n, data=NULL, subset=NULL, sm="ZCOR", level=0.95, level.comb=level, comb.fixed=TRUE, comb.random=TRUE, hakn=NULL, method.tau="DL", tau.preset=NULL, TE.tau=NULL, method.bias="linreg", title="title", complab="comparison", outclab="outcome")
Error in data.frame(subset = NULL, comb.fixed = TRUE, comb.random = TRUE, : arguments imply differing number of rows: 0, 1
Thanks,
Catherine
[[alternative HTML version deleted]]