Displaying 1 result from an estimated 1 matches for "data_cub3".
Did you mean:
data_cube
2009 Apr 29
1
Error with Design.Function(fit)
...nes of my data are all below.
Thank you!
"Error in Getlim(at, allow.null = TRUE, need.all = TRUE) :
variable dmodel.df does not have limits defined in fit or with datadist"
My code:
==================
library(Hmisc); library(Design); library(lattice);
dmodel.df = read.table("./data_cub3.txt", header=TRUE, nrows=100)
f <- ols(dmodel.df$y1 ~ rcs(dmodel.df$x1,3) )
print(f)
dd <- datadist(dmodel.df$x1)
options(datadist="dd")
describe(dmodel.df)
print( Function(f) )
plot(dmodel.df$x1, dmodel.df$y1)
plot(f, add=TRUE, col="blue", pch=2)
Output:
=========...