Search
 
SCRIPT & CODE EXAMPLE
 

R

prediction of linear model at a single point in R

df <- data.frame(meanValuesHeatingPower = c(1,4,3,7), 
                 meanValuesOutsideTemperature = c(4,3,4,7))

linearModel<-lm(meanValuesHeatingPower ~ meanValuesOutsideTemperature, data = df)

pred<-predict(linearModel, data.frame(meanValuesOutsideTemperature = c(1)))
print(pred)
Comment

PREVIOUS NEXT
Code Example
R :: in r corr Cannot compute exact p-value with ties 
R :: R create sequence of date each quarters 
R :: Hello Shiny Server Logic 
R :: rename variable in r dplyr 
R :: R excel 
R :: how to enter character string with quotes in r 
R :: geom_boxplot line width 
R :: Add tab in string r 
R :: st_combine by variables R 
R :: norm,s,inv in r 
R :: how to add in dictionary in R 
R :: how to count the number of non NA values in R 
R :: sumif in r 
R :: combine row for every element of vector r 
R :: r install package 
Rust :: rust create directory 
Rust :: rust nesting and labels loop 
Rust :: read file rust 
Rust :: push and item to vector rust 
Rust :: const generics in rust 
Rust :: rust while loop 
Rust :: armanriazi•rust•thread•spawin•move•capture 
Rust :: armanriazi•rust•error•the trait `Binary` is not implemented for `f64` 
Rust :: $sce trust url 
Rust :: minimum and maximum numbers for various integer types 
Rust :: armanriazi•rust•thread•channel 
Lua :: lua string.split 
Lua :: lua calculate average number 
Lua :: os.date lua 
Lua :: roblox pairs 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =